ENUM
# EmailVerificationMethod
@objc public enum EmailVerificationMethod: Int
Possible email verification methods.
# Cases
# link
case link
Verification link is sent to the user email.
# code
case code
Verification code is sent to the user email.
# Methods
# emailVerificationMethodFromString(_:)
public static func emailVerificationMethodFromString(
_ string: String
) -> EmailVerificationMethod
Getting the email verification method based on the given string value. If the method is not matched returns the link
value.
- Parameter string: value of the email verification method
- Returns: Value of the email verification method.
# Parameters
Name | Description |
---|---|
string | value of the email verification method |