-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(clerk-js,types): Support
redirectUrl
param in `Clerk.signtOut(…
…)` and `Clerk#afterSignOutUrl` property (#2412) * feat(clerk-js,types): Support redirectUrl option in Clerk.signOut() * chore(clerk-js): Add test for afterSignOutUrl prop in UserButton * feat(clerk-js,types): Support afterSignOutUrl and related methods in Clerk instance
- Loading branch information
Showing
8 changed files
with
167 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
'@clerk/clerk-js': minor | ||
'@clerk/clerk-react': minor | ||
'@clerk/types': minor | ||
--- | ||
|
||
Update `@clerk/clerk-js` and `@clerk/clerk-react` to support the following examples: | ||
|
||
```typescript | ||
Clerk.signOut({ redirectUrl: '/' }) | ||
|
||
<SignOutButton redirectUrl='/' /> | ||
// uses Clerk.signOut({ redirectUrl: '/' }) | ||
<UserButton afterSignOutUrl='/after' /> | ||
// uses Clerk.signOut({ redirectUrl: '/after' }) | ||
<ClerkProvider afterSignOutUrl='/after' /> | ||
// uses Clerk.signOut({ redirectUrl: '/after' }) | ||
``` |
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
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