Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
egregors authored Jul 14, 2024
1 parent fd90960 commit 9ee8242
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,20 @@ To add a passkey service to your application, you need to do two things:

```go
type User interface {
webauthn.User
PutCredential(webauthn.Credential)
webauthn.User
PutCredential(webauthn.Credential)
}

type UserStore interface {
GetOrCreateUser(userName string) User
SaveUser(User)
GetOrCreateUser(userName string) User
SaveUser(User)
}

type SessionStore interface {
GenSessionID() (string, error)
GetSession(token string) (webauthn.SessionData, bool)
SaveSession(token string, data webauthn.SessionData)
DeleteSession(token string)
GenSessionID() (string, error)
GetSession(token string) (*webauthn.SessionData, bool)
SaveSession(token string, data *webauthn.SessionData)
DeleteSession(token string)
}

```
Expand Down

0 comments on commit 9ee8242

Please sign in to comment.