Update tests
This commit is contained in:
@@ -617,7 +617,7 @@ func processAppleUserInfo(ctx context.Context, code string) (*models.User, error
|
||||
}
|
||||
}
|
||||
|
||||
return user, err
|
||||
return nil, err
|
||||
}
|
||||
|
||||
func processDiscordUserInfo(ctx context.Context, code string) (*models.User, error) {
|
||||
|
@@ -24,9 +24,13 @@ func RevokeRefreshTokenHandler() gin.HandlerFunc {
|
||||
})
|
||||
return
|
||||
}
|
||||
// get client ID
|
||||
clientID := strings.TrimSpace(reqBody["client_id"]) // kept for backward compatibility // else we expect to be present as header
|
||||
if clientID == "" {
|
||||
clientID = gc.Request.Header.Get("x-authorizer-client-id")
|
||||
}
|
||||
// get fingerprint hash
|
||||
refreshToken := strings.TrimSpace(reqBody["refresh_token"])
|
||||
clientID := strings.TrimSpace(reqBody["client_id"])
|
||||
|
||||
if clientID == "" {
|
||||
log.Debug("Client ID is empty")
|
||||
|
Reference in New Issue
Block a user