Verify 2FA authentication token.
User account.
Authentication context.
Authentication session repository holder.
Whether token is valid.
Hook used by strategy in order to attach metadata to account when multi factor auth is enabled.
Result of the hook.
Send authentication token via side channel.
User account.
Authentication context.
Authentication session repository holder.
Two factor authentication strategy which sends token to user via sms.
Generated token is stored in the AuthenticationSession.twoFactorAuthenticationToken property and is valid until AuthenticationSession expires or token is send by client and validated.