Skip to content

Commit

Permalink
Small update
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl committed Nov 23, 2024
1 parent 2d0d82d commit 228dc29
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Todo.Web/Server/AuthApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,9 @@ private static IResult SignIn(string userId, string userName, string token, stri
properties.SetExternalProvider(providerName);
}

var tokens = new[]
{
properties.StoreTokens([
new AuthenticationToken { Name = TokenNames.AccessToken, Value = token }
};

properties.StoreTokens(tokens);

]);

return Results.SignIn(new ClaimsPrincipal(identity),
properties: properties,
Expand Down

0 comments on commit 228dc29

Please sign in to comment.