javascript

Official Javascript repository for Clerk authentication

MIT License

Downloads
6.1M
Stars
1.1K
Committers
167
javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Minor Changes

  • Add descriptor for formatted dates in tables. Those elements can be identified by the cl-formattedDate__tableCell css class. (#3465) by @panteliselef

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Minor Changes

  • Support new redirect urls as environment variables or options to rootAuthLoader (#3442) by @panteliselef

    As options

    • signInForceRedirectUrl
    • signUpForceRedirectUrl
    • signInFallbackRedirectUrl
    • signUpFallbackRedirectUrl

    As environment variables

    • CLERK_SIGN_IN_FORCE_REDIRECT_URL
    • CLERK_SIGN_UP_FORCE_REDIRECT_URL
    • CLERK_SIGN_IN_FALLBACK_REDIRECT_URL
    • CLERK_SIGN_UP_FALLBACK_REDIRECT_URL

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Minor Changes

  • Introduce getClerkInstance() to avoid importing the Clerk class from clerk-js manually. (#3420) by @panteliselef

    This enables developers to create and access a Clerk instance in their application outside of React.

    import { ClerkProvider, getClerkInstance } from "@clerk/expo"
    
    const clerkInstance = getClerkInstance({ publishableKey: 'xxxx' })
    
    // Always pass the `publishableKey` to `ClerkProvider`
    <ClerkProvider publishableKey={'xxxx'}>
        ...
    </ClerkProvider>
    
    // Somewhere in your code, outside of React you can do
    const token = await clerkInstance.session?.getToken();
    fetch('http://example.com/', {headers: {Authorization: token })
    
    import { ClerkProvider, getClerkInstance } from "@clerk/expo"
    
    // Always pass the `publishableKey` to `ClerkProvider`
    <ClerkProvider publishableKey={'xxxx'}>
        ...
    </ClerkProvider>
    
    // If you sure that this code will run after the ClerkProvider has rendered then you can use `getClerkIntance` without options
    const token = await getClerkInstance().session?.getToken();
    fetch('http://example.com/', {headers: {Authorization: token })
    
    

    Attention: If getClerkInstance is called without a publishable key, and ClerkProvider has not rendered yet, an error will be thrown

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Minor Changes

    • Adds virtual router to support modal scenarios (#3461) by @tmilewski

    • Adds routing prop to SignIn.Root and SignUp.Root for handling virtual routing

    • Better support for Account Portal redirect callback flows

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Minor Changes

  • Add descriptor for formatted dates in tables. Those elements can be identified by the cl-formattedDate__tableCell css class. (#3465) by @panteliselef

Patch Changes

  • In some instances your application logo (shown at the top of the sign-in/sign-up form of the prebuilt components) might have been distorted in browsers like Firefox. By applying object-fit: contain to the image's CSS the logo now fills its bounding box without being distorted. (#3501) by @LekoArts

  • Support remounting ClerkProvider multiple times by making sure that the updateProps call during the loading phase does not override any defaults set by Clerk.load() for values that are missing (#3455) by @nikosdouvlis

  • Sms phone code verification lists available phone numbers on cancel. (#3479) by @panteliselef

  • Only render active sessions in the active devices section. Fixes the bug where a device with no information would render upon revoking. (#3497) by @desiprisg

  • Fixed a bug where Clerk components rendered in modals were wrapped with aria-hidden. (#3508) by @BRKalow

  • Bug fix: statically loading a resource would result in an increase in bundle size for clerk.browser.js. (#3519) by @panteliselef

  • Updated dependencies [86a27f693, 478c49b41, 02bed2e00, cd424c590, 73e5d61e2, 68f247444, b8e46328d]:

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes

javascript - @clerk/[email protected]

Published by clerk-cookie 5 months ago

Patch Changes