(ctx context.Context)
| 52 | } |
| 53 | |
| 54 | func (p *provider) refreshToken(ctx context.Context) error { |
| 55 | token, err := getTokenCached(ctx, p.c, p.id, p.secret) |
| 56 | if err != nil { |
| 57 | return errors.Wrapf(err, "failed to get token") |
| 58 | } |
| 59 | p.token = token |
| 60 | return nil |
| 61 | } |
| 62 | |
| 63 | var userIDCache = func() *lru.Cache[string, string] { |
| 64 | cache, err := lru.New[string, string](5000) |
no test coverage detected