Skip to content

Releases: clerk/javascript

@clerk/vue@1.6.1

14 Apr 18:19
bae9741
Compare
Choose a tag to compare

Patch Changes

@clerk/types@4.54.0

14 Apr 18:19
bae9741
Compare
Choose a tag to compare

Minor Changes

Patch Changes

@clerk/themes@2.2.32

14 Apr 18:19
bae9741
Compare
Choose a tag to compare

Patch Changes

@clerk/testing@1.4.39

14 Apr 18:19
bae9741
Compare
Choose a tag to compare

Patch Changes

@clerk/tanstack-react-start@0.13.5

14 Apr 18:19
bae9741
Compare
Choose a tag to compare

Patch Changes

@clerk/shared@3.7.0

14 Apr 18:19
bae9741
Compare
Choose a tag to compare

Minor Changes

Patch Changes

@clerk/remix@4.5.17

14 Apr 18:19
bae9741
Compare
Choose a tag to compare

Patch Changes

@clerk/react-router@1.2.5

14 Apr 18:19
bae9741
Compare
Choose a tag to compare

Patch Changes

@clerk/nuxt@1.5.5

14 Apr 18:19
bae9741
Compare
Choose a tag to compare

Patch Changes

@clerk/nextjs@6.15.0

14 Apr 18:19
bae9741
Compare
Choose a tag to compare

Minor Changes

  • Add support for feature or plan based authorization (#5582) by @panteliselef

    await auth()

    Plan

    • (await auth()).has({ plan: "my-plan" })

    Feature

    • (await auth()).has({ feature: "my-feature" })

    Scoped per user or per org

    • (await auth()).has({ feature: "org:my-feature" })
    • (await auth()).has({ feature: "user:my-feature" })
    • (await auth()).has({ plan: "user:my-plan" })
    • (await auth()).has({ plan: "org:my-plan" })

    auth.protect()

    Plan

    • auth.protect({ plan: "my-plan" })

    Feature

    • auth.protect({ feature: "my-feature" })

    Scoped per user or per org

    • auth.protect({ feature: "org:my-feature" })
    • auth.protect({ feature: "user:my-feature" })
    • auth.protect({ plan: "user:my-plan" })
    • auth.protect({ plan: "org:my-plan" })

    <Protect />

    Plan

    • <Protect plan="my-plan" />

    Feature

    • <Protect feature="my-feature" />

    Scoped per user or per org

    • <Protect feature="org:my-feature" />
    • <Protect feature="user:my-feature" />
    • <Protect plan="org:my-plan" />
    • <Protect plan="user:my-plan" />

    useAuth()

    Plan

    • useAuth().has({ plan: "my-plan" })

    Feature

    • useAuth().has({ feature: "my-feature" })

    Scoped per user or per org

    • useAuth().has({ feature: "org:my-feature" })
    • useAuth().has({ feature: "user:my-feature" })
    • useAuth().has({ plan: "user:my-plan" })
    • useAuth().has({ plan: "org:my-plan" })

Patch Changes