MCPcopy Create free account
hub / github.com/supabase/auth / WebAuthnCredentials

Method WebAuthnCredentials

internal/models/user.go:1028–1039  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1026}
1027
1028func (user *User) WebAuthnCredentials() []webauthn.Credential {
1029 var credentials []webauthn.Credential
1030
1031 for _, factor := range user.Factors {
1032 if factor.IsVerified() && factor.FactorType == WebAuthn {
1033 credential := factor.WebAuthnCredential.Credential
1034 credentials = append(credentials, credential)
1035 }
1036 }
1037
1038 return credentials
1039}
1040
1041func obfuscateValue(id uuid.UUID, value string) string {
1042 hash := sha256.Sum256([]byte(id.String() + value))

Callers

nothing calls this directly

Calls 1

IsVerifiedMethod · 0.80

Tested by

no test coverage detected