Commit e107ff7d authored by Anton's avatar Anton

Add prompt=none setting to auth0 config, use API client auth service

parent d44e3484
......@@ -8,7 +8,8 @@ export default ({ Vue }) => {
redirectUri: process.env.AUTH0_REDIRECT_URL,
audience: process.env.AUTH0_AUDIENCE,
scope: 'openid profile read write',
responseType: 'token id_token'
responseType: 'token id_token',
prompt: 'none'
},
host: process.env.API_HOST
})
......
import AuthService from 'mbjs-quasar/src/lib/auth-service'
import AuthServiceWeb from 'mbjs-api-client/src/auth-service-web'
export default ({ Vue }) => {
const authService = new AuthService({
const authService = new AuthServiceWeb({
domain: process.env.AUTH0_DOMAIN,
clientID: process.env.AUTH0_CLIENT_ID,
redirectUri: process.env.AUTH0_REDIRECT_URL,
audience: process.env.AUTH0_AUDIENCE,
scope: 'openid profile read write',
responseType: 'token id_token'
responseType: 'token id_token',
prompt: 'none'
})
Vue.prototype.$auth = authService
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment