Skip to content

Commit 228dc29

Browse files
committed
Small update
1 parent 2d0d82d commit 228dc29

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Todo.Web/Server/AuthApi.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,9 @@ private static IResult SignIn(string userId, string userName, string token, stri
114114
properties.SetExternalProvider(providerName);
115115
}
116116

117-
var tokens = new[]
118-
{
117+
properties.StoreTokens([
119118
new AuthenticationToken { Name = TokenNames.AccessToken, Value = token }
120-
};
121-
122-
properties.StoreTokens(tokens);
123-
119+
]);
124120

125121
return Results.SignIn(new ClaimsPrincipal(identity),
126122
properties: properties,

0 commit comments

Comments
 (0)