Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OTPRegistration ¶
type OTPRegistration struct { Timestamp time.Time UserID string UserDisplayName string Code string Account string }
OTPRegistration represents a single OTP request.
func RegisterFediverseOTP ¶
func RegisterFediverseOTP(accessToken, userID, userDisplayName, account string) (OTPRegistration, bool, error)
RegisterFediverseOTP will start the OTP flow for a user, creating a new code and returning it to be sent to a destination.
func ValidateFediverseOTP ¶
func ValidateFediverseOTP(accessToken, code string) (bool, *OTPRegistration)
ValidateFediverseOTP will verify a OTP code for a auth request.
Click to show internal directories.
Click to hide internal directories.