feat: CR login, register, subscribe

This commit is contained in:
ericprd
2025-02-24 16:48:20 +08:00
parent ae5b2cb975
commit cb3d06fa02
48 changed files with 1027 additions and 59 deletions
@@ -0,0 +1,8 @@
package contextkeyenum
type ContextKey string
const (
Authorization ContextKey = "AUTHORIZATION_CONTEXT"
Resource ContextKey = "RESOURCE_CONTEXT"
)
+1
View File
@@ -8,4 +8,5 @@ const (
EXPIRED_AT JWTClaim = "exp"
SESSION_ID JWTClaim = "sid"
ISSUED_AT JWTClaim = "iat"
RESOURCES JWTClaim = "resources"
)
+3
View File
@@ -0,0 +1,3 @@
package resourceenum
type Resource string