(factorID uuid.UUID, ipAddress string)
| 63 | } |
| 64 | |
| 65 | func (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 | |
| 78 | func (Challenge) TableName() string { |
| 79 | tableName := "mfa_challenges" |
no outgoing calls
no test coverage detected