Added auth0 authentication

This commit is contained in:
2020-08-01 21:45:05 +01:00
parent c2311b8564
commit 0c7000ba09
6 changed files with 87 additions and 67 deletions

View File

@@ -56,6 +56,7 @@ export default {
// Doc: https://axios.nuxtjs.org/usage
'@nuxtjs/axios',
'@nuxtjs/pwa',
'@nuxtjs/auth'
],
/*
** Axios module configuration
@@ -67,5 +68,17 @@ export default {
** See https://nuxtjs.org/api/configuration-build/
*/
build: {
},
router: {
middleware: ['auth']
},
auth: {
strategies: {
local: false,
auth0: {
domain: process.env.NUXT_ENV_AUTH0_DOMAIN,
client_id: process.env.NUXT_ENV_AUTH0_CLIENT_ID,
}
}
}
}