Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/hosted-auth-expo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@clerk/expo': patch
Comment thread
mikepitre marked this conversation as resolved.
'@clerk/clerk-js': patch
'@clerk/shared': patch
---

Add `@clerk/expo/hosted-auth` for signing in or signing up through Account Portal from native Expo apps.
9 changes: 9 additions & 0 deletions packages/clerk-js/src/core/__tests__/fapiClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,15 @@ describe('buildUrl(options)', () => {
);
});

it('adds rotating token nonce', () => {
const url = fapiClient.buildUrl({
path: '/client',
rotatingTokenNonce: 'nonce_123',
});

expect(url.searchParams.get('rotating_token_nonce')).toBe('nonce_123');
});

// The return value isn't as expected.
// The buildUrl function converts an undefined value to the string 'undefined'
// and includes it in the search parameters.
Expand Down
4 changes: 4 additions & 0 deletions packages/expo/hosted-auth/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"main": "../dist/hosted-auth/index.js",
"types": "../dist/hosted-auth/index.d.ts"
}
5 changes: 5 additions & 0 deletions packages/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
"types": "./dist/apple/index.d.ts",
"default": "./dist/apple/index.js"
},
"./hosted-auth": {
"types": "./dist/hosted-auth/index.d.ts",
"default": "./dist/hosted-auth/index.js"
},
"./resource-cache": {
"types": "./dist/resource-cache/index.d.ts",
"default": "./dist/resource-cache/index.js"
Expand Down Expand Up @@ -92,6 +96,7 @@
"token-cache",
"google",
"apple",
"hosted-auth",
"experimental",
"legacy",
"src/specs",
Expand Down
Loading
Loading