You've already forked AstralRinth
forked from didirus/AstralRinth
More secure custom authentication solution (#126)
* Remove Nuxt Auth from the project, and switch to a custom solution * Replace old testing code * Remove warnings * Add comments to hard to understand function calls in middleware * Use arrow functions
This commit is contained in:
@@ -77,9 +77,8 @@ export default {
|
||||
devtools: true,
|
||||
},
|
||||
},
|
||||
|
||||
router: {
|
||||
middleware: ['auth'],
|
||||
middleware: 'auth',
|
||||
},
|
||||
/*
|
||||
** Global CSS
|
||||
@@ -94,6 +93,7 @@ export default {
|
||||
'~/plugins/vue-notification.js',
|
||||
'~/plugins/compiled-markdown-directive.js',
|
||||
'~/plugins/vue-syntax.js',
|
||||
'~/plugins/auth.js',
|
||||
],
|
||||
/*
|
||||
** Auto import components
|
||||
@@ -116,12 +116,11 @@ export default {
|
||||
// Doc: https://axios.nuxtjs.org/usage
|
||||
'@nuxtjs/dayjs',
|
||||
'@nuxtjs/axios',
|
||||
'@nuxtjs/auth',
|
||||
'@nuxtjs/robots',
|
||||
'@nuxtjs/sitemap',
|
||||
'nuxt-clipboard2',
|
||||
'@nuxtjs/style-resources',
|
||||
'@nuxtjs/google-adsense',
|
||||
'cookie-universal-nuxt',
|
||||
],
|
||||
robots: {
|
||||
Sitemap: 'https://modrinth.com/sitemap.xml',
|
||||
@@ -129,20 +128,6 @@ export default {
|
||||
sitemap: {
|
||||
exclude: ['/dashboard/**', '/dashboard', '/mod/create'],
|
||||
},
|
||||
auth: {
|
||||
strategies: {
|
||||
local: {
|
||||
endpoints: {
|
||||
user: {
|
||||
url: 'https://api.modrinth.com/api/v1/user',
|
||||
method: 'get',
|
||||
propertyName: false,
|
||||
},
|
||||
},
|
||||
tokenType: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
/*
|
||||
** Axios module configuration
|
||||
** See https://axios.nuxtjs.org/options
|
||||
|
||||
Reference in New Issue
Block a user