Skip to content

Commit

Permalink
fix incorrect expiration in oauth sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Oct 31, 2023
1 parent 5a9ed66 commit c50b92f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oauth2/client_impl.go
Expand Up @@ -158,6 +158,6 @@ func newSession(accessToken discord.AccessTokenResponse) Session {
RefreshToken: accessToken.RefreshToken,
Scopes: accessToken.Scope,
TokenType: accessToken.TokenType,
Expiration: time.Now().Add(accessToken.ExpiresIn * time.Second),
Expiration: time.Now().Add(accessToken.ExpiresIn),
}
}

0 comments on commit c50b92f

Please sign in to comment.