Code cleanup
This commit is contained in:
1 parent
20cc4db097
commit
f5cdbe1bd3
6 files changed
+27
-19
No files matched your search
@@ -11,6 +11,14 @@ type PresignToken struct {
|
||||
Path string
|
||||
}
|
||||
|
||||
type Type string
|
||||
|
||||
const (
|
||||
TypeBasic Type = "basic"
|
||||
TypeApi Type = "api"
|
||||
TypeToken Type = "token"
|
||||
)
|
||||
|
||||
func CreateToken(tokenInfo PresignToken, duration time.Duration) (string, error) {
|
||||
// jwt token
|
||||
atClaims := jwt.MapClaims{}
|
||||
|
||||
Reference in new issue
Block a user