Code cleanup

This commit is contained in:
Borna Rajković committed 2024-01-06 14:17:22 +01:00
1 parent 20cc4db097
commit f5cdbe1bd3
6 files changed
+27 -19

No files matched your search

+8
View File
@@ -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{}