mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-10 06:42:53 +02:00
Update oidc redirect to pass both new and old token in url
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user