Update oidc redirect to pass both new and old token in url

This commit is contained in:
advplyr
2025-07-07 17:21:25 -05:00
parent ad092ef8f8
commit 6cc7a44a22
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -305,8 +305,8 @@ export default {
},
async mounted() {
// Token passed as query parameter after successful oidc login
if (this.$route.query?.setToken) {
localStorage.setItem('token', this.$route.query.setToken)
if (this.$route.query?.accessToken) {
localStorage.setItem('token', this.$route.query.accessToken)
}
if (localStorage.getItem('token')) {
if (await this.checkAuth()) return // if valid user no need to check status