Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Add access token system with pblind and scramble handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Nov 19, 2021
1 parent 5288d6d commit 5a08823
Show file tree
Hide file tree
Showing 12 changed files with 1,676 additions and 0 deletions.
16 changes: 16 additions & 0 deletions access/token/errors.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package token

import "errors"

var (
ErrEmpty = errors.New("token storage is empty")
ErrNoZone = errors.New("no zone specified")
ErrTokenInvalid = errors.New("token is invalid")
ErrTokenMalformed = errors.New("token malformed")
ErrTokenUsed = errors.New("token already used")
ErrZoneMismatch = errors.New("zone mismatch")
ErrZoneTaken = errors.New("zone taken")
ErrZoneUnknown = errors.New("zone unknown")

errSignatureMalformed = errors.New("signature malformed")
)
Loading

0 comments on commit 5a08823

Please sign in to comment.