Official Javascript repository for Clerk authentication
MIT License
Published by clerk-cookie 2 months ago
Allow users to display the email address field after selecting to input a phone number. Previously that was not possible when passkeys were enabled. (v4) (#3920) by @EmmanouelaPothitou
Updated dependencies [f18ca132d
]:
Published by clerk-cookie 2 months ago
f18ca132d
]:
Published by clerk-cookie 3 months ago
Update export for Chrome Extension background jobs to align with SDK specs (#3857) by @tmilewski
Example Usage:
import { __unstable__createClerkClient } from "@clerk/chrome-extension/background";
const publishableKey = import.meta.env.VITE_CLERK_PUBLISHABLE_KEY || "";
async function getToken() {
const clerk = await __unstable__createClerkClient({
publishableKey /*, syncSessionWithTab: true */,
});
return await clerk.session?.getToken();
}
// NOTE: A runtime listener cannot be async.
// It must return true, in order to keep the connection open and send a response later.
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
getToken().then((token) => sendResponse({ token }));
return true;
});
Published by clerk-cookie 3 months ago
transferable
prop for <SignIn />
to disable the automatic transfer of a sign in attempt to a sign up attempt when attempting to sign in with a social provider when the account does not exist. Also adds a transferable
option to Clerk.handleRedirectCallback()
with the same functionality. (#3845) by @BRKalow
Published by clerk-cookie 3 months ago
59d5f19d3
, 4e6c94e3f
]:
Published by clerk-cookie 3 months ago
59d5f19d3
, 4e6c94e3f
]:
Published by clerk-cookie 3 months ago
nonce
to clerk-js' script loading options. Also adds a nonce
prop to ClerkProvider
. This can be used to thread a nonce value through to the clerk-js script load to support apps using a strict-dynamic
content security policy. For next.js applications, the nonce will be automatically pulled from the CSP header and threaded through without needing any props so long as the provider is server-rendered. (#3858) by @jescalan
4e6c94e3f
]:
Published by clerk-cookie 3 months ago
4e6c94e3f
]:
Published by clerk-cookie 3 months ago
Introduce getAuth
that can be used in server functions. (#3900) by @octoper
Example usage:
import { getAuth } from '@clerk/tanstack-start/server'
import { createServerFn } from '@tanstack/start'
export const fetchCurrentUserPosts = createServerFn('GET', async (_payload, ctx) => {
const { userId } = await getAuth(ctx)
if (!userId) {
...
}
...
})
- Throw a more useful error when `clerkHandler()` is not configured in the SSR entrypoint ([#3918](https://github.com/clerk/javascript/pull/3918)) by [@octoper](https://github.com/octoper)
### Patch Changes
- Updated dependencies [[`59d5f19d3`](https://github.com/clerk/javascript/commit/59d5f19d333bf4a35c244886e93b4368e215225c), [`4e6c94e3f`](https://github.com/clerk/javascript/commit/4e6c94e3f4cc92cbba8bddcd2b90fcc9cfb83763)]:
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
## 0.1.16
### Patch Changes
- Updated dependencies [[`d7bf0f87c`](https://github.com/clerk/javascript/commit/d7bf0f87c4c50bc19d2796bca32bd694046a23b0), [`9b2aeacb3`](https://github.com/clerk/javascript/commit/9b2aeacb32fff7c300bda458636a1cc81a42ee7b)]:
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
## 0.1.15
### Patch Changes
- Updated dependencies [[`7e94fcf0f`](https://github.com/clerk/javascript/commit/7e94fcf0fcbee8842a54f7931c45190370aa870d)]:
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
## 0.1.14
### Patch Changes
- Updated dependencies [[`568186cad`](https://github.com/clerk/javascript/commit/568186cad29acaf0b084a9f86ccb9d29bd23fcf4), [`407195270`](https://github.com/clerk/javascript/commit/407195270ed8aab6eef18c64a4918e3870fef471)]:
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
## 0.1.13
### Patch Changes
- Updated dependencies [[`992e5960c`](https://github.com/clerk/javascript/commit/992e5960c785eace83f3bad7c34d589fa313dcaf)]:
- @clerk/[email protected]
## 0.1.12
### Patch Changes
- Updated dependencies [[`fde5b5e7e`](https://github.com/clerk/javascript/commit/fde5b5e7e6fb5faa4267e06d82a38a176165b4f4), [`aa06f3ba7`](https://github.com/clerk/javascript/commit/aa06f3ba7e725071c90d4a1d6840060236da3c23), [`80e647731`](https://github.com/clerk/javascript/commit/80e64773135865434cf0e6c220e287397aa07937)]:
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
## 0.1.11
### Patch Changes
- Updated dependencies [[`b48689705`](https://github.com/clerk/javascript/commit/b48689705f9fc2251d2f24addec7a0d0b1da0fe1)]:
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
## 0.1.10
### Patch Changes
- Updated dependencies [[`d465d7069`](https://github.com/clerk/javascript/commit/d465d70696bf26270cb2efbf4695ca49016fcb96)]:
- @clerk/[email protected]
## 0.1.9
### Patch Changes
- Updated dependencies [[`045fb93cb`](https://github.com/clerk/javascript/commit/045fb93cbf577ca84e5b95fc6dfaacde67693be2)]:
- @clerk/[email protected]
## 0.1.8
### Patch Changes
- Updated dependencies [[`b87f7b9e1`](https://github.com/clerk/javascript/commit/b87f7b9e163756fd43789bc7b7344d2eb24015ec), [`b2788f67b`](https://github.com/clerk/javascript/commit/b2788f67b75cce17af1a2f91a984bb826a5a42e1), [`86c75e50c`](https://github.com/clerk/javascript/commit/86c75e50cba9c4efb480672f1b8c6a6fff4ef477)]:
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
## 0.1.7
### Patch Changes
- Updated dependencies [[`df7d856d5`](https://github.com/clerk/javascript/commit/df7d856d56bc3b1dcbdbf9155b4ef1b1ea5971f7)]:
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
## 0.1.6
### Patch Changes
- Updated dependencies [[`5642b2616`](https://github.com/clerk/javascript/commit/5642b26167a6eb1aca68777d782a9686edacfd37)]:
- @clerk/[email protected]
## 0.1.5
### Patch Changes
- Updated dependencies [[`427fcdeaa`](https://github.com/clerk/javascript/commit/427fcdeaaba4e77273be29b4d7cca43f9aa18693)]:
- @clerk/[email protected]
## 0.1.4
### Patch Changes
- Updated dependencies [[`f1847b70b`](https://github.com/clerk/javascript/commit/f1847b70b2327bd490faf1f3eed1aa5639d54993)]:
- @clerk/[email protected]
## 0.1.3
### Patch Changes
- Updated dependencies [[`d6b5006c4`](https://github.com/clerk/javascript/commit/d6b5006c4cc1b6f07bb3a6832b4ec6e65ea15814)]:
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
## 0.1.2
### Patch Changes
- Updated dependencies [[`1273b04ec`](https://github.com/clerk/javascript/commit/1273b04ecf1866b59ef59a74abe31dbcc726da2c)]:
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
## 0.1.1
### Patch Changes
- Introducing experimental version of Clerk SDK for TanStack Start ([#3538](https://github.com/clerk/javascript/pull/3538)) by [@octoper](https://github.com/octoper)
- Updated dependencies [[`4ec3f63e2`](https://github.com/clerk/javascript/commit/4ec3f63e26d8d3725a7ba9bbf988a7776fe893ff)]:
- @clerk/[email protected]
- @clerk/[email protected]
- @clerk/[email protected]
Published by clerk-cookie 3 months ago
nonce
to clerk-js' script loading options. Also adds a nonce
prop to ClerkProvider
. This can be used to thread a nonce value through to the clerk-js script load to support apps using a strict-dynamic
content security policy. For next.js applications, the nonce will be automatically pulled from the CSP header and threaded through without needing any props so long as the provider is server-rendered. (#3858) by @jescalan
59d5f19d3
, 4e6c94e3f
]:
Published by clerk-cookie 3 months ago
Add a nonce
to clerk-js' script loading options. Also adds a nonce
prop to ClerkProvider
. This can be used to thread a nonce value through to the clerk-js script load to support apps using a strict-dynamic
content security policy. For next.js applications, the nonce will be automatically pulled from the CSP header and threaded through without needing any props so long as the provider is server-rendered. (#3858) by @jescalan
Introduce transferable
prop for <SignIn />
to disable the automatic transfer of a sign in attempt to a sign up attempt when attempting to sign in with a social provider when the account does not exist. Also adds a transferable
option to Clerk.handleRedirectCallback()
with the same functionality. (#3845) by @BRKalow
59d5f19d3
, 4e6c94e3f
]:
Published by clerk-cookie 3 months ago
59d5f19d3
, 4e6c94e3f
]:
Published by clerk-cookie 3 months ago
Add a nonce
to clerk-js' script loading options. Also adds a nonce
prop to ClerkProvider
. This can be used to thread a nonce value through to the clerk-js script load to support apps using a strict-dynamic
content security policy. For next.js applications, the nonce will be automatically pulled from the CSP header and threaded through without needing any props so long as the provider is server-rendered. (#3858) by @jescalan
Introduce transferable
prop for <SignIn />
to disable the automatic transfer of a sign in attempt to a sign up attempt when attempting to sign in with a social provider when the account does not exist. Also adds a transferable
option to Clerk.handleRedirectCallback()
with the same functionality. (#3845) by @BRKalow
59d5f19d3
, 4e6c94e3f
]:
Published by clerk-cookie 3 months ago
useLocalCredentials
. (#3663) by @panteliselef
59d5f19d3
, 4e6c94e3f
]:
Published by clerk-cookie 3 months ago
4e6c94e3f
]:
Published by clerk-cookie 3 months ago
59d5f19d3
, 4e6c94e3f
]:
Published by clerk-cookie 3 months ago
59d5f19d3
, 4e6c94e3f
]:
Published by clerk-cookie 3 months ago
Add support for redirect_url URL parameter (#3906) by @dstaley
Updated dependencies [4e6c94e3f
]:
Published by clerk-cookie 3 months ago
59d5f19d3
, 4e6c94e3f
]:
Published by clerk-cookie 3 months ago
59d5f19d3
, 4e6c94e3f
]: