Files
threshold/website/pages/api/auth/[...nextauth].js
T
Jimmy Merritello ba9f6b2cd6 [Website] Add Auth (#417)
* Initial auth commit

* Add Auth0 to preview env config

* Proper website package name
2020-09-23 15:47:30 -05:00

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=
},
})