Files
threshold/website/pages/api/auth/[...nextauth].js
T

12 lines
306 B
JavaScript
Raw Normal View History

2020-09-23 15:47:30 -05:00
import nextAuthApiRoute from 'lib/next-auth-utils/config'
export default (req, res) =>
nextAuthApiRoute(
req,
res
)({
environments: { production: ['Okta'], preview: ['Okta', 'Auth0'] },
pages: {
error: '/signin-error', // Error code passed in query string as ?error=
},
})