{"repo":"wobsoriano/h3-clerk","free":true,"listed":false,"github":"https://github.com/wobsoriano/h3-clerk","clone":"git clone https://github.com/wobsoriano/h3-clerk.git","description":"Unofficial Clerk middleware for H3.","language":"TypeScript","stars":40,"topics":["authentication","h3","nuxt"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"h3-clerk Unofficial Clerk middleware for H3. Getting Started To use this middleware you should first create a Clerk application and retrieve a Secret Key and a Publishable Key for your application (see here) to be used as environment variables CLERK PUBLISHABLE KEY & CLERK SECRET KEY . Installation Usage Available methods clerkMiddleware() The clerkMiddleware() middleware integrates Clerk authentication into your H3 application. It is required to be set in the middleware chain before using other Clerk utilities, such as getAuth() . Options The clerkMiddleware() helper accepts the same options as Clerk's middleware: these options. getAuth() The getAuth() function retrieves authentication state from the event object. Using acceptsToken for machine auth You can pass acceptsToken to getAuth() when you want to verify other token types (for example api key and m2m token ). You can also pass multiple token types: clerkClient Clerk's JavaScript Backend SDK exposes Clerk's Backend API resources and low-level authentication utilities for JavaScript environments. For example, if you wanted to get a list of all users in your application, instead of creating a fetch to Clerk's https://api.clerk.com/v1/users endpoint, you can use the users.getUserList() method provided by the JavaScript Backend SDK. All resource operations are mounted as sub-APIs on the clerkClient object. See the reference documentation for more information. License MIT","default_branch":null,"files":null,"tree":[],"storefront":"/r/wobsoriano","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wobsoriano/h3-clerk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}