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)
| 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. |
| 278 | func WithRefresh(hook func(email string) error) func(*FakeIDP) { |
| 279 | return func(f *FakeIDP) { |
| 280 | f.hookOnRefresh = hook |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | func WithDefaultExpire(d time.Duration) func(*FakeIDP) { |
| 285 | return func(f *FakeIDP) { |
no outgoing calls