Fix passkey authentication
Also prep for better router layout
This commit is contained in:
parent
e2260e4a0f
commit
b9eb4234f4
11 changed files with 289 additions and 21 deletions
16
server/constants.go
Normal file
16
server/constants.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
package server
|
||||
|
||||
const ContextKeyPasskeyUsername = "context-passkey-username"
|
||||
|
||||
type ContextKey string
|
||||
|
||||
const (
|
||||
ContextKeyStorage ContextKey = "Context key for storage"
|
||||
ContextKeyActorId ContextKey = "Context key for actor id"
|
||||
)
|
||||
|
||||
const (
|
||||
HttpErrIdPlaceholder = iota
|
||||
HttpErrIdMissingContextValue
|
||||
HttpErrIdDbFailure
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue