-
Notifications
You must be signed in to change notification settings - Fork 27.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'canary' into support_cacheStrategy_eslint_arg
- Loading branch information
Showing
25 changed files
with
206 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const port = process.env.APP_PORT || 3000 | ||
|
||
const apiBasePath = '/api/auth/' | ||
|
||
export const websiteDomain = | ||
process.env.APP_URL || | ||
process.env.NEXT_PUBLIC_APP_URL || | ||
`http://localhost:${port}` | ||
|
||
export const appInfo = { | ||
appName: 'SuperTokens Demo App', | ||
websiteDomain, | ||
apiDomain: websiteDomain, | ||
apiBasePath, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import ThirdPartyEmailPasswordReact from 'supertokens-auth-react/recipe/thirdpartyemailpassword' | ||
import SessionReact from 'supertokens-auth-react/recipe/session' | ||
import { appInfo } from './appInfo' | ||
|
||
export let frontendConfig = () => { | ||
return { | ||
appInfo, | ||
recipeList: [ | ||
ThirdPartyEmailPasswordReact.init({ | ||
emailVerificationFeature: { | ||
mode: 'REQUIRED', | ||
}, | ||
signInAndUpFeature: { | ||
providers: [ | ||
ThirdPartyEmailPasswordReact.Google.init(), | ||
ThirdPartyEmailPasswordReact.Github.init(), | ||
], | ||
}, | ||
}), | ||
SessionReact.init(), | ||
], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,9 +139,9 @@ | |
"pretty-ms": "7.0.0", | ||
"random-seed": "0.3.0", | ||
"react": "17.0.2", | ||
"react-18": "npm:[email protected]3c4c1c470-20211021", | ||
"react-18": "npm:[email protected]13455d26d-20211104", | ||
"react-dom": "17.0.2", | ||
"react-dom-18": "npm:[email protected]3c4c1c470-20211021", | ||
"react-dom-18": "npm:[email protected]13455d26d-20211104", | ||
"react-ssr-prepass": "1.0.8", | ||
"release": "6.3.0", | ||
"request-promise-core": "1.1.2", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.