Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Jul 9, 2024
1 parent 11e6332 commit f6a8e1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ private static void AddIdentity(WebApplicationBuilder builder)
OnMessageReceived = async context =>
{
// The server accepts the access_token from either the authorization header, the cookie, or the request URL query string
context.Token ??= context.Request.Cookies["access_token"] ?? context.Request.Query["access_token"];
context.Token ??= context.Request.Query.ContainsKey("access_token") ? context.Request.Query["access_token"] : context.Request.Cookies["access_token"];
}
};
});
Expand Down

0 comments on commit f6a8e1d

Please sign in to comment.