Skip to content

Commit c50b92f

Browse files
committed
fix incorrect expiration in oauth sessions
1 parent 5a9ed66 commit c50b92f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oauth2/client_impl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,6 @@ func newSession(accessToken discord.AccessTokenResponse) Session {
158158
RefreshToken: accessToken.RefreshToken,
159159
Scopes: accessToken.Scope,
160160
TokenType: accessToken.TokenType,
161-
Expiration: time.Now().Add(accessToken.ExpiresIn * time.Second),
161+
Expiration: time.Now().Add(accessToken.ExpiresIn),
162162
}
163163
}

0 commit comments

Comments
 (0)