{"repo":"nuxt-modules/hanko","free":true,"listed":false,"github":"https://github.com/nuxt-modules/hanko","clone":"git clone https://github.com/nuxt-modules/hanko.git","description":"Hanko integration for Nuxt","language":"TypeScript","stars":61,"topics":["web-authn","authentication","hanko","nuxt","nuxt-module","passkey"],"license":null,"category":"auth-billing-email","readme_excerpt":"Nuxt Hanko [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![Github Actions][github-actions-src]][github-actions-href] [![Codecov][codecov-src]][codecov-href] Hanko integration for Nuxt - ✨ &nbsp;Changelog - 🎁 &nbsp;Hanko starter Features - ✨ Easy integration for Hanko - 🧱 Type safety and auto-registration for Hanko web components - 💪 Server utilities for full-stack auth Installation Install and add @nuxtjs/hanko to your nuxt.config . Usage Components To use, you can use the Hanko components anywhere in your app: , and . These are web components that will be rendered on the client-side only. Props are typed. You can turn auto-registration of components off (if you wish to use Hanko just on the server side or programmatically) with registerComponents: false . Check out the Hanko documentation to learn more. Middleware By default two new route middleware are available in your Nuxt app: hanko-logged-in and hanko-logged-out . - hanko-logged-in will prevent access to a page unless you are logged in. (It will redirect you to redirects.login instead, and then redirect back to this page once you login. You can disable this behaviour by setting redirects.followRedirect to false .) - hanko-logged-out will prevent access to a page unless you are logged out. (It will redirect you to redirects.success when you log in, and otherwise to redirects.home .) You can also create your own middleware for full control. Auto-imports u","default_branch":null,"files":null,"tree":[],"storefront":"/r/nuxt-modules","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nuxt-modules/hanko/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."}