mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-27 14:19:38 +00:00
Update oidc redirect to pass both new and old token in url
This commit is contained in:
parent
ad092ef8f8
commit
6cc7a44a22
2 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue