Source code for arbor_imago.schemas.otp

from pydantic import BaseModel
from typing import Optional

from arbor_imago import custom_types
from arbor_imago.schemas import auth_credential as auth_credential_schema


[docs] class OTPAdminUpdate(BaseModel): pass
[docs] class OTPAdminCreate(BaseModel): user_id: custom_types.User.id hashed_code: custom_types.OTP.hashed_code expiry: custom_types.AuthCredential.expiry