Skip to content

Commit

Permalink
Merge pull request #17 from flycash/main
Browse files Browse the repository at this point in the history
修改 session 返回的头部名字,符合标准规范
  • Loading branch information
flycash authored Mar 1, 2024
2 parents ac85f71 + e012fac commit f43be2d
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 f43be2d

Please sign in to comment.