* Initial auth commit * Add Auth0 to preview env config * Proper website package name
13 lines
306 B
JavaScript
13 lines
306 B
JavaScript
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=
|
|
},
|
|
})
|