mirror of
https://github.com/1f349/lavender.git
synced 2024-12-22 07:34:06 +00:00
No idea how this happened
This commit is contained in:
parent
374a708899
commit
ca80b26f92
@ -64,7 +64,7 @@ func (h *HttpServer) OptionalAuthentication(next UserHandler) httprouter.Handle
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (h *HttpServer) internalAuthenticationHandler(req *http.Request) (UserAuth, error) {
|
func (h *HttpServer) internalAuthenticationHandler(req *http.Request) (UserAuth, error) {
|
||||||
if loginCookie, err := req.Cookie("tulip-login-data"); err == nil {
|
if loginCookie, err := req.Cookie("lavender-login-data"); err == nil {
|
||||||
_, b, err := mjwt.ExtractClaims[auth.AccessTokenClaims](h.signingKey, loginCookie.Value)
|
_, b, err := mjwt.ExtractClaims[auth.AccessTokenClaims](h.signingKey, loginCookie.Value)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return UserAuth{}, err
|
return UserAuth{}, err
|
||||||
|
Loading…
Reference in New Issue
Block a user