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

Method newRefreshTokens

coderd/coderdtest/oidctest/idp.go:851–856  ·  view source on GitHub ↗
(email string)

Source from the content-addressed store, hash-verified

849}
850
851func (f *FakeIDP) newRefreshTokens(email string) string {
852 refreshToken := uuid.NewString()
853 f.refreshTokens.Store(refreshToken, email)
854 f.logger.Info(context.Background(), "new refresh token", slog.F("email", email), slog.F("token", refreshToken))
855 return refreshToken
856}
857
858// authenticateBearerTokenRequest enforces the access token is valid.
859func (f *FakeIDP) authenticateBearerTokenRequest(t testing.TB, req *http.Request) (string, error) {

Callers 1

httpHandlerMethod · 0.95

Calls 2

StoreMethod · 0.45
InfoMethod · 0.45

Tested by

no test coverage detected