Releases: clerk/javascript
@clerk/[email protected]
Minor Changes
-
Introduce a new experimental hook called
useReverification
that makes it easy to handle reverification errors. (#4362) by @panteliselefIt returns a high order function (HOF) and allows developers to wrap any function that triggers a fetch request which might fail due to a user's session verification status.
When such error is returned, the recommended UX is to offer a way to the user to recover by re-verifying their credentials.
This helper will automatically handle this flow in the developer's behalf, by displaying a modal the end-user can interact with.
Upon completion, the original request that previously failed, will be retried (only once).Example with clerk-js methods.
import { __experimental_useReverification as useReverification } from "@clerk/nextjs"; function DeleteAccount() { const { user } = useUser(); const [deleteUserAccount] = useReverification(() => { if (!user) return; return user.delete(); }); return ( <> <button onClick={async () => { await deleteUserAccount(); }} > Delete account </button> </> ); }
Patch Changes
-
Fix
signOutOptions
prop usage in<SignOutButton />
component (#4433) by @wobsoriano -
Updates
useDerivedAuth()
to correctly derivehas()
from the available auth data. Fixes an issue whenuseAuth()
is called during server-side rendering. (#4421) by @BRKalow -
Updating peerDependencies for correct ranges (#4436) by @jacekradko
-
Updated dependencies [
f875463da
,5be7ca9fd
,08c5a2add
,434b432f8
]:- @clerk/[email protected]
- @clerk/[email protected]
@clerk/[email protected]
Minor Changes
Patch Changes
-
Experimental:
asStandalone
now accepts a callback that notifies if the standalone popover needs to unmount. (#4423) by @panteliselef -
Improve checkbox label alignment to account for wrapping labels. (#4426) by @alexcarpenter
-
Remove unused
fitTextInOneLine
andtextWidthForCurrentSize
(#4407) by @zythosec -
Chore: Replace beforeEmit with an explicit call after
setActive
, inside the experimental UserVerification. (#4362) by @panteliselef -
Updated dependencies [
f875463da
,5be7ca9fd
,c2f5071be
,08c5a2add
,ae0621972
,cd2189ac8
,159877be0
,434b432f8
]:- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
@clerk/[email protected]
Patch Changes
- Updated dependencies [
69c8f4f21
,f875463da
,41f2ede56
,5be7ca9fd
,08c5a2add
,a06f1f34f
,f0e062918
,08c5a2add
,24cd77989
,08c5a2add
,434b432f8
]:- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
@clerk/[email protected]
Patch Changes
- Updated dependencies [
69c8f4f21
,f875463da
,41f2ede56
,5be7ca9fd
,08c5a2add
,a06f1f34f
,f0e062918
,08c5a2add
,24cd77989
,08c5a2add
,434b432f8
]:- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
@clerk/[email protected]
Patch Changes
- Updated dependencies [
f875463da
,5be7ca9fd
,08c5a2add
,434b432f8
]:- @clerk/[email protected]
- @clerk/[email protected]
@clerk/[email protected]
Patch Changes
- Updated dependencies [
f875463da
,5be7ca9fd
,08c5a2add
,434b432f8
]:- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
@clerk/[email protected]
Patch Changes
- Bug fix: Include protect types in
auth
(#4398) by @panteliselef
@clerk/[email protected]
@clerk/[email protected]
Patch Changes
- Updated dependencies [
7a632905c
,83c0e7f28
,d82886c70
]:- @clerk/[email protected]
@clerk/[email protected]
Patch Changes
- Updated dependencies [
7a632905c
,83c0e7f28
,d82886c70
]:- @clerk/[email protected]