We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func ExtractTokenMetadata(c *fiber.Ctx) (*TokenMetadata, error) { 함수에서 token을 추출 하고 있다.
func ExtractTokenMetadata(c *fiber.Ctx) (*TokenMetadata, error) {
func JWTProtected() func(*fiber.Ctx) error { 에서 jwtware.New(config ...jwtware.Config) func(*fiber.Ctx) error 를 사용하고 있기 때문에 Locals에서 뽑을 수가 있다.
func JWTProtected() func(*fiber.Ctx) error {
jwtware.New(config ...jwtware.Config) func(*fiber.Ctx) error
user := c.Locals("user").(*jwt.Token) claims := user.Claims.(jwt.MapClaims) name := claims["name"].(string)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
AS-IS
func ExtractTokenMetadata(c *fiber.Ctx) (*TokenMetadata, error) {
함수에서 token을 추출 하고 있다.TO-BE
func JWTProtected() func(*fiber.Ctx) error {
에서jwtware.New(config ...jwtware.Config) func(*fiber.Ctx) error
를 사용하고 있기 때문에Locals에서 뽑을 수가 있다.
Reference
The text was updated successfully, but these errors were encountered: