fix: add provider to token creation

This commit is contained in:
Lakhan Samani
2022-06-29 09:54:12 +05:30
parent 64d64b4099
commit e6a4670ba9
2 changed files with 21 additions and 11 deletions

View File

@@ -219,7 +219,7 @@ func AuthorizeHandler() gin.HandlerFunc {
}
// if user is logged in
// based on the response type, generate the response
// based on the response type code, generate the response
if isResponseTypeCode {
// rollover the session for security
go memorystore.Provider.DeleteUserSession(user.ID, claims.Nonce)