Skip to content

Commit

Permalink
修改 session 返回的头部名字,符合标准规范
Browse files Browse the repository at this point in the history
  • Loading branch information
flycash committed Mar 1, 2024
1 parent ac85f71 commit e012fac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions session/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ func NewSessionProvider(client redis.Cmdable, key string) *SessionProvider {
ijwt.WithRefreshJWTOptions[session.Claims](ijwt.NewOptions(expiration, key)))
return &SessionProvider{
client: client,
atHeader: "x-access-token",
rtHeader: "x-refresh-token",
atHeader: "X-Access-Token",
rtHeader: "X-Refresh-Token",
tokenHeader: "Authorization",
m: m,
expiration: expiration,
Expand Down

0 comments on commit e012fac

Please sign in to comment.