I converted my okta code from v2 to v3 a while back to fix a weird bug.
my def in router /index.js looks like this now, getting the values from env files at compile time
// okta-vue 3.1 way - EWB
const oktaAuth = new OktaAuth({
issuer: process.env.VUE_APP_issuer,
clientId: process.env.VUE_APP_client_id,
redirectUri: ${window.location.origin}/callback
,
scopes: [‘openid’, ‘profile’, ‘email’],
})
In vue 2 I also had at the bottom of this definiton:
tokenManager: { storage: ‘sessionStorage’ },
It was added such that closing the browser logged the user off.
but if I add it now in 3, it breaks login.
Does anyone know the formatting of the syntax in vue 3 now? I remember having to convert it to okta-vue.js 2 syntax back in the day, but i cant’ find the 3 syntax now.
Thanks,
Eric-