fix(auth): handles refresh token flow correctly
This commit is contained in:
@@ -42,7 +42,6 @@ public record LoginWithFacebookResponse(
|
||||
public class LoginWithFacebookHandler(
|
||||
IHttpClientFactory httpClientFactory,
|
||||
IdentityUserManager userManager,
|
||||
SignInManager<IdentityUser> signInManager,
|
||||
IOptionsSnapshot<JwtOptions> jwtOptions)
|
||||
: Endpoint<LoginWithFacebookRequest, LoginWithFacebookResponse>
|
||||
{
|
||||
@@ -116,8 +115,6 @@ public class LoginWithFacebookHandler(
|
||||
user = generatedUser;
|
||||
}
|
||||
|
||||
await signInManager.SignInAsync(user, isPersistent: false);
|
||||
|
||||
// Generate refresh token
|
||||
var refreshToken = RefreshTokenGenerator.Next();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user