4.2.0 (2018-04-20)
Thanks for your patience and feedback that made this release possible. 💖
From this release, 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: