Official Javascript repository for Clerk authentication
MIT License
Published by clerk-cookie 5 months ago
Adds Stately's Browser Inspector in development builds (#3424) by @tmilewski
Removes @statelyai/inspect
from dependencies
Ensures all inspector-related code is omitted from the build
Fix: Verification form submission wasn't working after returning from "choosing an alternate strategy" without making a selection. (#3425) by @tmilewski
Perf: Adds a NeverRetriable
state for applicable strategies so the countdown doesn't run needlessly.
Published by clerk-cookie 5 months ago
Published by clerk-cookie 5 months ago
ff31f7255
, 0e48fc210
]:
Published by clerk-cookie 5 months ago
Add a custom logger to allow logging a message or warning to the console once per session, in order to avoid consecutive identical logs due to component rerenders. (#3383) by @desiprisg
With the next major release, NextJS@15 will depend on react
and react-dom
v19, which is still in beta. We are updating our peer dependencies accordingly in order to accept react
and react-dom
@ 19.0.0-beta
(#3428) by @nikosdouvlis
Published by clerk-cookie 5 months ago
ff31f7255
, 0e48fc210
]:
Published by clerk-cookie 5 months ago
ff31f7255
, 0e48fc210
]:
Published by clerk-cookie 5 months ago
With the next major release, NextJS@15 will depend on react
and react-dom
v19, which is still in beta. We are updating our peer dependencies accordingly in order to accept react
and react-dom
@ 19.0.0-beta
(#3428) by @nikosdouvlis
Updated dependencies [ff31f7255
, 0e48fc210
]:
Published by clerk-cookie 5 months ago
With the next major release, NextJS@15 will depend on react
and react-dom
v19, which is still in beta. We are updating our peer dependencies accordingly in order to accept react
and react-dom
@ 19.0.0-beta
(#3428) by @nikosdouvlis
Utilize an awaitable replace function internally to avoid race conditions when using router.replace
. (#3416) by @desiprisg
Updated dependencies [ff31f7255
, 0e48fc210
]:
Published by clerk-cookie 5 months ago
Published by clerk-cookie 5 months ago
ff31f7255
, 0e48fc210
]:
Published by clerk-cookie 5 months ago
ff31f7255
, 0e48fc210
]:
Published by clerk-cookie 5 months ago
ff31f7255
, 0e48fc210
]:
Published by clerk-cookie 5 months ago
Published by clerk-cookie 5 months ago
Add a custom logger to allow logging a message or warning to the console once per session, in order to avoid consecutive identical logs due to component rerenders. (#3383) by @desiprisg
Updated dependencies [ff31f7255
, 8e5969d82
, 0e48fc210
]:
Published by clerk-cookie 5 months ago
ff31f7255
, 0e48fc210
]:
Published by clerk-cookie 5 months ago
ff31f7255
, 0e48fc210
]:
Published by clerk-cookie 5 months ago
Add support for GoogleOneTap. New APIs listed: (#3392) by @panteliselef
<GoogleOneTap/>
Customize the UX of the prompt
<GoogleOneTap
cancelOnTapOutside={false}
itpSupport={false}
fedCmSupport={false}
/>
Clerk.openGoogleOneTap(props: GoogleOneTapProps)
Clerk.closeGoogleOneTap()
await Clerk.authenticateWithGoogleOneTap({ token: 'xxxx'})
await Clerk.handleGoogleOneTapCallback()
We recommend using this two methods together in order and let Clerk to perform the correct redirections.
google.accounts.id.initialize({
callback: async response => {
const signInOrUp = await Clerk.authenticateWithGoogleOneTap({ token: response.credential });
await Clerk.handleGoogleOneTapCallback(signInOrUp, {
signInForceRedirectUrl: 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,
});
}
},
});
Published by clerk-cookie 5 months ago
d6a9b3f5d
]:
Published by clerk-cookie 5 months ago
Add experimental console warning on Cypress setup function (#3395) by @anagstef
Updated dependencies [d6a9b3f5d
, 456b06849
]:
Published by clerk-cookie 5 months ago