Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Claims ¶
type Claims struct { UserID string `json:"user_id"` CustomClaims map[string]interface{} `json:"custom_claims"` jwt.StandardClaims }
Claims ... JWTに仕込むclaims定義
type Service ¶
type Service interface { CreateToken( ctx context.Context, userID string, customClaims map[string]interface{}) (string, error) Authentication( ctx context.Context, ah string) (string, map[string]interface{}, error) }
Service ... JWT認証の機能を提供する
func NewService ¶
NewService ... Serviceを作成する
Click to show internal directories.
Click to hide internal directories.