Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: google onetap example #679

Merged
merged 8 commits into from May 1, 2023
Merged

fix: google onetap example #679

merged 8 commits into from May 1, 2023

Conversation

sattvikc
Copy link
Contributor

@sattvikc sattvikc commented May 1, 2023

Summary of change

Google one tap example

Related issues

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)

Documentation changes

(If relevant, please create a PR in our docs repo, or create a checklist here highlighting the necessary changes)

Checklist for important updates

  • Changelog has been updated
  • frontendDriverInterfaceSupported.json file has been updated (if needed)
  • Changes to the version if needed
    • In package.json
    • In package-lock.json
    • In lib/ts/version.ts
  • Had run npm run build-pretty
  • Had installed and ran the pre-commit hook
  • Issue this PR against the latest non released version branch.
    • To know which one it is, run find the latest released tag (git tag) in the format vX.Y.Z, and then find the latest branch (git branch --all) whose X.Y is greater than the latest released tag.
    • If no such branch exists, then create one from the latest released branch.
  • If added a new recipe interface, then make sure that the implementation of it uses NON arrow functions only (like someFunc: function () {..}).
  • If I added a new recipe, I also added the recipe entry point into the size-limit section of package.json with the size limit set to the current size rounded up.
  • If I added a new recipe, I also added the recipe entry point into the rollup.config.mjs

Remaining TODOs for this PR

  • Item1
  • Item2

@sattvikc sattvikc self-assigned this May 1, 2023
@github-actions
Copy link

github-actions bot commented May 1, 2023

size-limit report 📦

Path Size
lib/build/index.js 8.91 KB (0%)
recipe/session/index.js 9.03 KB (0%)
recipe/thirdpartyemailpassword/index.js 41.01 KB (0%)
recipe/thirdparty/index.js 22.36 KB (0%)
recipe/emailpassword/index.js 24.6 KB (0%)
recipe/passwordless/index.js 98.2 KB (0%)
recipe/thirdpartypasswordless/index.js 115.84 KB (0%)

@@ -0,0 +1,16 @@
"""
ASGI config for app project.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use nodejs

import { SuperTokensConfig } from "./config";

SuperTokens.init(SuperTokensConfig);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add the dogooglen to the login page itself

Comment on lines 35 to 38
insertUrlParam("code", data.credential);
insertUrlParam("state", stateInfo.stateForAuthProvider);

ThirdParty.signInAndUp({userContext: {oneTap: true}});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use override of recipe to get code and state instead of doing this way

signInAndUpFeature: {
providers: [Google.init()],
},
preAPIHook: async (context) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can do where you are calling thirdparty sign in up function itself

@rishabhpoddar rishabhpoddar merged commit e3ca010 into 0.31 May 1, 2023
19 of 21 checks passed
@rishabhpoddar rishabhpoddar deleted the google-onetap-example branch May 1, 2023 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants