Update Electron
This commit is contained in:
parent
cae6d582ac
commit
c84ee948f5
22 changed files with 763 additions and 152 deletions
|
|
@ -160,7 +160,7 @@ func (ar *AuthRouter) Route(r chi.Router) {
|
|||
// get userInfo info
|
||||
userInfo, err := ar.oauth.GetUserInfo(r.Context(), &oauth2.Token{AccessToken: token})
|
||||
if err != nil {
|
||||
http.Error(w, "Error getting userInfo info", http.StatusBadRequest)
|
||||
http.Error(w, "Error getting userInfo info", http.StatusUnauthorized)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ func (o *oauthService) GetUserInfo(ctx context.Context, token *oauth2.Token) (*m
|
|||
}
|
||||
|
||||
if userInfo["error"] != nil {
|
||||
return nil, errors.New("Error getting user info")
|
||||
return nil, errors.New("error getting user info")
|
||||
}
|
||||
|
||||
return &models.User{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue