MCPcopy
hub / github.com/tinyauthapp/tinyauth / Hash

Method Hash

internal/service/oidc_service.go:659–663  ·  view source on GitHub ↗
(token string)

Source from the content-addressed store, hash-verified

657}
658
659func (service *OIDCService) Hash(token string) string {
660 hasher := sha256.New()
661 hasher.Write([]byte(token))
662 return fmt.Sprintf("%x", hasher.Sum(nil))
663}
664
665func (service *OIDCService) DeleteOldSession(ctx context.Context, sub string) error {
666 err := service.queries.DeleteOidcCodeBySub(ctx, sub)

Callers 5

StoreCodeMethod · 0.95
GenerateAccessTokenMethod · 0.95
RefreshAccessTokenMethod · 0.95
TokenMethod · 0.80
UserinfoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected