0.0.6 • Published 3 years ago

nuxtjs-multi-auth v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Configuration

You can configure different auth strategy for every route base on prefix and strategy defined in config.

Example: you want to have admin and user have different session and different auth strategy by just defining configuration in nuxt.config.js. Default strategy is user

strategies: {
	user: {
		// nuxt auth strategy configurations
	},
	admin: {
		// nuxt auth strategy configurations
	}
}

So now you can access / or /user/* it'll use user strategy and /admin/* for admin strategy

Development

Running demo for development:

$ yarn install

$ yarn dev

License

MIT License - Copyright (c) Nuxt Community