Zero-boilerplate authentication support for Nuxt 2
MIT License
Bot releases are hidden (Show)
4.2.0 (2018-04-20)
Published by pi0 over 6 years ago
Thanks for your patience and feedback that made this possible. 💖
We are going back to the standard release cycles.
Please see New Docs, Examples and Migration Guide for getting started.
resetOnError
is set to false
by default. Previously any network error was causing user log out! We are working on better oauth token reset methods.This is an almost rewrite of Auth module, to improve perf, stability and make it more customizable.
auth
and no-auth
middleware unified to a smarter auth
middleware.isLoggedIn
will be automatically watched for changes and changing route on login/logout.$auth
instance is shared across Nuxt context (plugins, middleware, pages, etc).Set-Cookie
header or window.nuxt.state
) for security reasons.$auth.onError
.user
endpoint.entrypoint.propertyName
. It supports nested values like token.AccessToken
or even more complicated ones including arrays like devices.0.token
.hasScope
utility to easily check permissions.Please be sure to read both Docs and Migration guide
Thanks: