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

Function IsInvalidTokenError

coderd/externalauth/externalauth.go:185–188  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

183}
184
185func IsInvalidTokenError(err error) bool {
186 var invalidTokenError InvalidTokenError
187 return xerrors.As(err, &invalidTokenError)
188}
189
190// RefreshToken automatically refreshes the token if expired and permitted.
191func (c *Config) RefreshToken(ctx context.Context, db database.Store, externalAuthLink database.ExternalAuthLink) (database.ExternalAuthLink, error) {

Callers 4

TestRefreshTokenFunction · 0.92
acquireProtoJobMethod · 0.92

Calls 1

AsMethod · 0.80

Tested by 1

TestRefreshTokenFunction · 0.74