GetAccessTokenBySHA1 returns the access token with given SHA1. It returns database.ErrAccessTokenNotExist when not found.
(ctx context.Context, sha1 string)
| 107 | // GetAccessTokenBySHA1 returns the access token with given SHA1. It returns |
| 108 | // database.ErrAccessTokenNotExist when not found. |
| 109 | GetAccessTokenBySHA1(ctx context.Context, sha1 string) (*database.AccessToken, error) |
| 110 | // TouchAccessTokenByID updates the updated time of the given access token to |
| 111 | // the current time. |
| 112 | TouchAccessTokenByID(ctx context.Context, id int64) error |