ajout de la redirection vers l'affichage des tokens

This commit is contained in:
2021-01-26 23:32:57 +01:00
parent 5c70282cfe
commit e21982350b
6 changed files with 153 additions and 95 deletions

View File

@@ -5,11 +5,12 @@ import "fmt"
type Oauth struct {
ID int64 `db:"id"`
AccessToken string `db:"access_token"`
TokenType string `db:"token_type"`
ExpireIN int `db:"expire_in"`
RefreshToken string `db:"refreh_token"`
}
func (o Oauth) String() string {
return fmt.Sprintf("id=%v, accessToken=%v, expireIN=%v, refreshToken=%v",
o.ID, o.AccessToken, o.ExpireIN, o.RefreshToken)
return fmt.Sprintf("id=%v, accessToken=%v, tokenType=%v, expireIN=%v, refreshToken=%v",
o.ID, o.AccessToken, o.TokenType, o.ExpireIN, o.RefreshToken)
}