Enhance JWT Token Management and Authentication Flow (#720)
- Implement extended token lifetime for "Remember Me" functionality - Add token expiration details to authentication responses - Update client-side token handling to support dynamic expiration - Modify authentication middleware to handle token initialization more robustly - Configure JWT configuration to support longer token lifetimes
This commit is contained in:
@@ -54,7 +54,7 @@ function handleCallback() {
|
||||
form.code = route.query.code
|
||||
form.utm_data = $utm.value
|
||||
form.post(`/oauth/${provider}/callback`).then(async (data) => {
|
||||
authStore.setToken(data.token)
|
||||
authStore.setToken(data.token, data.expires_in)
|
||||
const [userDataResponse, workspacesResponse] = await Promise.all([
|
||||
opnFetch("user"),
|
||||
fetchAllWorkspaces(),
|
||||
|
||||
Reference in New Issue
Block a user