Skip to content

Commit

Permalink
Added back provider keys on TwoFactorProviders response
Browse files Browse the repository at this point in the history
  • Loading branch information
trmartin4 committed Nov 6, 2024
1 parent 355ebfa commit d7d904a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ public async Task<Dictionary<string, object>> BuildTwoFactorResultAsync(User use

var twoFactorResultDict = new Dictionary<string, object>
{
{ "TwoFactorProviders", null },
{ "TwoFactorProviders2", providers }, // backwards compatibility
{ "TwoFactorProviders", providers.Keys }, // backwards compatibility
{ "TwoFactorProviders2", providers },
};

// If we have email as a 2FA provider, we might need an SsoEmail2fa Session Token
Expand Down

0 comments on commit d7d904a

Please sign in to comment.