MCPcopy Index your code
hub / github.com/coder/coder / RefreshUsed

Method RefreshUsed

coderd/coderdtest/oidctest/idp.go:1487–1490  ·  view source on GitHub ↗

RefreshUsed returns if the refresh token has been used. All refresh tokens can only be used once, then they are deleted.

(refreshToken string)

Source from the content-addressed store, hash-verified

1485// RefreshUsed returns if the refresh token has been used. All refresh tokens
1486// can only be used once, then they are deleted.
1487func (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

Callers 1

ForceRefreshMethod · 0.80

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected