Official Javascript repository for Clerk authentication
MIT License
Published by clerk-cookie 5 months ago
fcc349cb5
, fcc349cb5
]:
Published by clerk-cookie 5 months ago
Clerk.openGoogleOneTap({ cancelOnTapOutside: false, fedCmSupport: false, itpSupport: false })
Clerk.closeGoogleOneTap()
await Clerk.authenticateWithGoogleOneTap({ token: 'xxxx'})
await Clerk.handleGoogleOneTapCallback()
We recommend using this two methods together in order and let Clerk perform the correct redirections.
google.accounts.id.initialize({
callback: async response => {
const signInOrUp = await Clerk.authenticateWithGoogleOneTap({ token: response.credential });
await Clerk.handleGoogleOneTapCallback(signInOrUp, {
afterSignInUrl: window.location.href,
});
},
});
In case you want to handle the redirection and session management yourself you can do so like this
google.accounts.id.initialize({
callback: async response => {
const signInOrUp = await Clerk.authenticateWithGoogleOneTap({ token: response.credential });
if (signInOrUp.status === 'complete') {
await Clerk.setActive({
session: signInOrUp.createdSessionId,
});
}
},
});
fcc349cb5
]:
Published by clerk-cookie 5 months ago
GoogleOneTap
. (#3409) by @panteliselef
fcc349cb5
, fcc349cb5
]:
Published by clerk-cookie 5 months ago
fcc349cb5
]:
Published by clerk-cookie 5 months ago
<FieldError />
to enable asChild
prop for custom markup in render function usage. (#3396) by @alexcarpenter
Published by clerk-cookie 5 months ago
__experimental_openGoogleOneTap
. (#3379) by @panteliselef
Published by clerk-cookie 5 months ago
3d790d5ea
]:
Published by clerk-cookie 5 months ago
3d790d5ea
]:
Published by clerk-cookie 5 months ago
__experimental_openGoogleOneTap
. (#3379) by @panteliselef
3d790d5ea
]:
Published by clerk-cookie 5 months ago
3d790d5ea
]:
Published by clerk-cookie 5 months ago
3d790d5ea
]:
Published by clerk-cookie 5 months ago
3d790d5ea
]:
Published by clerk-cookie 5 months ago
Published by clerk-cookie 5 months ago
1fdd4368b
, 3d790d5ea
]:
Published by clerk-cookie 5 months ago
setActive
not firing upon a successful sign up. (#3391) by @tmilewski
Published by clerk-cookie 5 months ago
__experimental_openGoogleOneTap
. (#3379) by @panteliselef
Remove cookie when signing out before running onBeforeSetActive
to resolve issues where we do navigations in onBeforeSetActive
. (#3371) by @octoper
Updated dependencies [3d790d5ea
, e84090db0
]:
Published by clerk-cookie 5 months ago
1fdd4368b
, 3d790d5ea
]:
Published by clerk-cookie 5 months ago
Published by clerk-cookie 5 months ago
eae0a32d5
]:
Published by clerk-cookie 5 months ago
eae0a32d5
]: