wip
This commit is contained in:
@@ -27,10 +27,11 @@ func ValidateOAuthToken(c *gin.Context) {
|
||||
}
|
||||
tokenInfoCall := oauth2Service.Tokeninfo()
|
||||
tokenInfoCall.IdToken(authorizationHeaderSplitted[1])
|
||||
_, err = tokenInfoCall.Do()
|
||||
token, err := tokenInfoCall.Do()
|
||||
if err != nil {
|
||||
utils.GetLogger().WithError(err).Error(err)
|
||||
utils.JSONError(c.Writer, model.ErrBadRequestFormat)
|
||||
return
|
||||
}
|
||||
c.Set("googleUserId", token.UserId)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user