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

Function WithRefresh

coderd/coderdtest/oidctest/idp.go:278–282  ·  view source on GitHub ↗

WithRefresh is called when a refresh token is used. The email is the email of the user that is being refreshed assuming the claims are correct.

(hook func(email string) error)

Source from the content-addressed store, hash-verified

276// WithRefresh is called when a refresh token is used. The email is
277// the email of the user that is being refreshed assuming the claims are correct.
278func WithRefresh(hook func(email string) error) func(*FakeIDP) {
279 return func(f *FakeIDP) {
280 f.hookOnRefresh = hook
281 }
282}
283
284func WithDefaultExpire(d time.Duration) func(*FakeIDP) {
285 return func(f *FakeIDP) {

Callers 7

TestUserOIDCFunction · 0.92
TestRefreshTokenFunction · 0.92
TestUserOIDCFunction · 0.92

Calls

no outgoing calls

Tested by 7

TestUserOIDCFunction · 0.74
TestRefreshTokenFunction · 0.74
TestUserOIDCFunction · 0.74