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

Method ToChallenge

internal/models/challenge.go:65–76  ·  view source on GitHub ↗
(factorID uuid.UUID, ipAddress string)

Source from the content-addressed store, hash-verified

63}
64
65func (ws *WebAuthnSessionData) ToChallenge(factorID uuid.UUID, ipAddress string) *Challenge {
66 id := uuid.Must(uuid.NewV4())
67 return &Challenge{
68 ID: id,
69 FactorID: factorID,
70 IPAddress: ipAddress,
71 WebAuthnSessionData: &WebAuthnSessionData{
72 ws.SessionData,
73 },
74 }
75
76}
77
78func (Challenge) TableName() string {
79 tableName := "mfa_challenges"

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected