RefreshUsed returns if the refresh token has been used. All refresh tokens can only be used once, then they are deleted.
(refreshToken string)
| 1485 | // RefreshUsed returns if the refresh token has been used. All refresh tokens |
| 1486 | // can only be used once, then they are deleted. |
| 1487 | func (f *FakeIDP) RefreshUsed(refreshToken string) bool { |
| 1488 | used, _ := f.refreshTokensUsed.Load(refreshToken) |
| 1489 | return used |
| 1490 | } |
| 1491 | |
| 1492 | // UpdateRefreshClaims allows the caller to change what claims are returned |
| 1493 | // for a given refresh token. By default, all refreshes use the same claims as |