corrections typo parametre du flow oauth2

This commit is contained in:
2021-01-29 00:53:05 +01:00
parent 29c7e70cc9
commit cf9e02efcb
3 changed files with 17 additions and 16 deletions

View File

@@ -31,7 +31,7 @@ CREATE TABLE IF NOT EXISTS oauth
id INTEGER PRIMARY KEY AUTOINCREMENT,
access_token TEXT,
token_type TEXT,
expire_in INTEGER,
expires_in INTEGER,
refresh_token TEXT
)
`
@@ -77,8 +77,8 @@ func (store *DbStore) GetOauth(id int64) (*model.Oauth, error) {
}
func (store *DbStore) CreateOauth(o *model.Oauth) error {
res, err := store.db.Exec("INSERT INTO oauth (access_token, token_type, expire_in, refresh_token) VALUES (?, ?, ?, ?)",
o.AccessToken, o.TokenType, o.ExpireIN, o.RefreshToken)
res, err := store.db.Exec("INSERT INTO oauth (access_token, token_type, expires_in, refresh_token) VALUES (?, ?, ?, ?)",
o.AccessToken, o.TokenType, o.ExpiresIN, o.RefreshToken)
if err != nil {
return err