(ctx context.Context)
| 167 | } |
| 168 | |
| 169 | func (p *provider) refreshToken(ctx context.Context) error { |
| 170 | token, err := getTokenCached(ctx, p.c, p.id, p.secret) |
| 171 | if err != nil { |
| 172 | return err |
| 173 | } |
| 174 | p.token = token |
| 175 | return nil |
| 176 | } |
| 177 | |
| 178 | var userIDCache = func() *lru.Cache[string, string] { |
| 179 | cache, err := lru.New[string, string](5000) |
no test coverage detected