mstar
391d8b1b48
- Added placeholder funcs for access tokens - Moved an error definition and added another constant - Changed (passkey) auth fail to return a json error for now - TODO: Change that into checking for a provided access token before failing
17 lines
346 B
Go
17 lines
346 B
Go
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
|
|
HttpErrIdNotAuthenticated
|
|
)
|