Files
threshold/website/pages/api/auth/[...nextauth].js
T
Jimmy Merritello f7ac991d32 [Website] Add Auth0 when ready (#440)
* Add auth0

* Style tweaks in line with wp
2020-09-25 14:12:35 -05:00

13 lines
315 B
JavaScript

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