mise en place du refresh token

This commit is contained in:
Laurent Drogou
2021-01-30 00:34:00 +01:00
parent a385e4f267
commit 6d4795b0a6
4 changed files with 20 additions and 15 deletions

View File

@@ -67,12 +67,10 @@ func (store *DbStore) Close() error {
func (store *DbStore) GetOauth(id int64) (*model.Oauth, error) {
var oauth = &model.Oauth{}
log.Println("ME VOICI")
err := store.db.Get(oauth, "SELECT * FROM oauth where id=$1", id)
if err != nil {
return oauth, err
}
log.Printf("oauth=%v", oauth)
return oauth, nil
}