go.charczuk.com@v0.0.0-20240327042549-bc490516bd1a/sdk/oauth/google.go (about)

     1  /*
     2  
     3  Copyright (c) 2023 - Present. Will Charczuk. All rights reserved.
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file at the root of the repository.
     5  
     6  */
     7  
     8  package oauth
     9  
    10  // GoogleClaims are extensions to the jwt standard claims for google oauth.
    11  //
    12  // See additional documentation here: https://developers.google.com/identity/sign-in/web/backend-auth
    13  type GoogleClaims struct {
    14  	Email         string `json:"email"`
    15  	EmailVerified bool   `json:"email_verified"`
    16  	HD            string `json:"hd"`
    17  	Nonce         string `json:"nonce"`
    18  	FamilyName    string `json:"family_name"`
    19  	GivenName     string `json:"given_name"`
    20  	Locale        string `json:"locale"`
    21  	Picture       string `json:"picture"`
    22  	Profile       string `json:"profile"`
    23  }