mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
only re-store user creds when token expire
This commit is contained in:
@@ -103,12 +103,12 @@ func GetCurrentLoggedInUserDetails() (LoggedInUserDetails, error) {
|
|||||||
if accessTokenResponse.Token != "" {
|
if accessTokenResponse.Token != "" {
|
||||||
isAuthenticated = true
|
isAuthenticated = true
|
||||||
userCreds.JTWToken = accessTokenResponse.Token
|
userCreds.JTWToken = accessTokenResponse.Token
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
err = StoreUserCredsInKeyRing(&userCreds)
|
err = StoreUserCredsInKeyRing(&userCreds)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Debug().Msg("unable to store your user credentials with new access token")
|
log.Debug().Msg("unable to store your user credentials with new access token")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !isAuthenticated {
|
if !isAuthenticated {
|
||||||
|
|||||||
Reference in New Issue
Block a user