mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
feat(users): Create user_key_store table and begin_totp API (#4577)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -236,8 +236,19 @@ pub enum TokenOrPayloadResponse<T> {
|
||||
Token(TokenResponse),
|
||||
Payload(T),
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize)]
|
||||
pub struct UserFromEmailRequest {
|
||||
pub token: Secret<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize)]
|
||||
pub struct BeginTotpResponse {
|
||||
pub secret: Option<TotpSecret>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize)]
|
||||
pub struct TotpSecret {
|
||||
pub secret: Secret<String>,
|
||||
pub totp_url: Secret<String>,
|
||||
pub recovery_codes: Vec<Secret<String>>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user