We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auth: { baseURL: 'https://xxx.xxx.xxx.xxx:xxxx/api/user/', globalAppMiddleware: true, sessionRefresh: { enablePeriodically: 1200000, enableOnWindowFocus: true, }, provider: { type: 'refresh', token: { signInResponseTokenPointer: '/tokens/token', type: 'Bearer', headerName: 'Authorization', maxAgeInSeconds: 300, }, refreshToken: { signInResponseRefreshTokenPointer: '/tokens/refreshToken', refreshRequestTokenPointer: 'Bearer', maxAgeInSeconds: 28800, }, pages: { login: '/login' }, endpoints: { signIn: { path: 'login', method: 'post' }, signOut: { path: 'logout', method: 'post' }, signUp: undefined, getSession: undefined, refresh: { path: 'refresh', method: 'post' } } } }
I have my external API handling requests, login works and i correctly save the values of Token and RefreshToken
When refresh automaticly sets off refreshHandle fails to find refreshToken value and stops the process.
Confirmed i have the token cookies with correct values, and all pointers are correct.
I was able to verify that the refreshToken is correctly saved
const { status, token, refreshToken } = useAuth(); console.log(refreshToken.value);
And the token was correct
No response
The text was updated successfully, but these errors were encountered:
phoenix-ru
No branches or pull requests
Environment
Reproduction
My configs
auth: { baseURL: 'https://xxx.xxx.xxx.xxx:xxxx/api/user/', globalAppMiddleware: true, sessionRefresh: { enablePeriodically: 1200000, enableOnWindowFocus: true, }, provider: { type: 'refresh', token: { signInResponseTokenPointer: '/tokens/token', type: 'Bearer', headerName: 'Authorization', maxAgeInSeconds: 300, }, refreshToken: { signInResponseRefreshTokenPointer: '/tokens/refreshToken', refreshRequestTokenPointer: 'Bearer', maxAgeInSeconds: 28800, }, pages: { login: '/login' }, endpoints: { signIn: { path: 'login', method: 'post' }, signOut: { path: 'logout', method: 'post' }, signUp: undefined, getSession: undefined, refresh: { path: 'refresh', method: 'post' } } } }
I have my external API handling requests, login works and i correctly save the values of Token and RefreshToken
Describe the bug
When refresh automaticly sets off refreshHandle fails to find refreshToken value and stops the process.
Confirmed i have the token cookies with correct values, and all pointers are correct.
Additional context
I was able to verify that the refreshToken is correctly saved
const { status, token, refreshToken } = useAuth(); console.log(refreshToken.value);
And the token was correct
Logs
No response
The text was updated successfully, but these errors were encountered: