-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into brk.feat/remix-handshake
- Loading branch information
Showing
51 changed files
with
682 additions
and
647 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,14 @@ | ||
--- | ||
'@clerk/backend': major | ||
--- | ||
|
||
Change return value of `verifyToken()` from `@clerk/backend` to `{ data, error}`. | ||
To replicate the current behaviour use this: | ||
```typescript | ||
import { verifyToken } from '@clerk/backend' | ||
|
||
const { data, error } = await verifyToken(...); | ||
if(error){ | ||
throw error; | ||
} | ||
``` |
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,7 @@ | ||
--- | ||
'@clerk/types': major | ||
--- | ||
|
||
- Remove `BuildUrlWithAuthParams` type | ||
- `AuthConfigResource` no longer has a `urlBasedSessionSyncing` property | ||
- `buildUrlWithAuth` no longer accepts an `options` argument of `BuildUrlWithAuthParams`. |
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,2 @@ | ||
--- | ||
--- |
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,5 @@ | ||
--- | ||
'@clerk/types': minor | ||
--- | ||
|
||
Introduce new `ResultWithError` type in `@clerk/types` |
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,10 @@ | ||
--- | ||
'@clerk/chrome-extension': major | ||
'@clerk/clerk-js': major | ||
'@clerk/nextjs': major | ||
'@clerk/shared': major | ||
'@clerk/clerk-react': major | ||
'@clerk/types': major | ||
--- | ||
|
||
Remove hashing and third-party cookie functionality related to development instance session syncing in favor of URL-based session syncing with query parameters. |
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,6 @@ | ||
--- | ||
'@clerk/clerk-js': major | ||
'@clerk/clerk-react': major | ||
--- | ||
|
||
- `buildUrlWithAuth` no longer accepts an `options` argument. |
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,2 @@ | ||
--- | ||
--- |
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,23 @@ | ||
--- | ||
'@clerk/backend': major | ||
'@clerk/nextjs': major | ||
'@clerk/types': major | ||
--- | ||
|
||
Change return values of `signJwt`, `hasValidSignature`, `decodeJwt`, `verifyJwt` | ||
to return `{ data, error }`. Example of keeping the same behavior using those utilities: | ||
```typescript | ||
import { signJwt, hasValidSignature, decodeJwt, verifyJwt } from '@clerk/backend/jwt'; | ||
|
||
const { data, error } = await signJwt(...) | ||
if (error) throw error; | ||
|
||
const { data, error } = await hasValidSignature(...) | ||
if (error) throw error; | ||
|
||
const { data, error } = decodeJwt(...) | ||
if (error) throw error; | ||
|
||
const { data, error } = await verifyJwt(...) | ||
if (error) throw error; | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,3 +60,5 @@ export class TokenVerificationError extends Error { | |
})`; | ||
} | ||
} | ||
|
||
export class SignJWTError extends Error {} |
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
Oops, something went wrong.