Documentation ¶
Overview ¶
Package parsers - NekoBlog backend server data parsing utilities. This file is for token parsing. Copyright (c) [2024], Author(s): - WhitePaper233<baizhiwp@gmail.com>
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseToken ¶
func ParseToken(token string) (*types.BearerTokenClaims, error)
ParseToken 解析令牌。
参数:
- token:令牌字符串。
返回值:
- *BearerTokenClaims:令牌中的声明。
- error:如果在解析过程中发生错误,则返回相应的错误信息,否则返回nil。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.