(token string)
| 288 | } |
| 289 | |
| 290 | func (s *storage) RemoveAccess(token string) error { |
| 291 | if tokenType, id, _, err := auth.SplitToken(token); err == nil { |
| 292 | if tokenType != auth.AccessToken { |
| 293 | return errNoAccessToken.New() |
| 294 | } |
| 295 | token = id |
| 296 | } |
| 297 | return s.store.Transact(s.ctx, func(ctx context.Context, st oauth_store.Interface) error { |
| 298 | return st.DeleteAccessToken(ctx, token) |
| 299 | }) |
| 300 | } |
| 301 | |
| 302 | func (s *storage) LoadRefresh(token string) (*osin.AccessData, error) { |
| 303 | tokenType, id, tokenKey, err := auth.SplitToken(token) |
nothing calls this directly
no test coverage detected