Package com.glideidentity.services
Class MagicAuthClient
java.lang.Object
com.glideidentity.services.MagicAuthClient
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionMagicAuthClient(Types.GlideSdkSettings settings) MagicAuthClient(Types.GlideSdkSettings settings, Logger logger) -
Method Summary
Modifier and TypeMethodDescriptioncheckServerAuth(String sessionId) voidClear the MagicAuth sessionGet the current MagicAuth sessionGet phone number with credentialPrepare authentication for Magic Auth V2 flowvoidSet the MagicAuth session manuallyVerify phone number with credential
-
Constructor Details
-
MagicAuthClient
-
MagicAuthClient
-
-
Method Details
-
startAuth
public MagicAuthClient.MagicAuthStartResponse startAuth(MagicAuthClient.BaseMagicAuthStartProps props) throws Exception - Throws:
Exception
-
startServerAuth
public MagicAuthClient.MagicAuthStartServerAuthResponse startServerAuth(MagicAuthClient.BaseMagicAuthStartProps props) throws Exception - Throws:
Exception
-
verifyAuth
public MagicAuthClient.MagicAuthCheckResponse verifyAuth(MagicAuthClient.MagicAuthVerifyProps props) throws Exception - Throws:
Exception
-
checkServerAuth
public MagicAuthClient.MagicAuthCheckServerAuthResponse checkServerAuth(String sessionId) throws Exception - Throws:
Exception
-
prepare
Prepare authentication for Magic Auth V2 flow- Throws:
Exception
-
verifyPhoneNumber
public MagicAuthDtos.VerifyPhoneNumberResponse verifyPhoneNumber(MagicAuthDtos.VerifyPhoneNumberRequest props) throws Exception Verify phone number with credential- Throws:
Exception
-
getPhoneNumber
public MagicAuthDtos.GetPhoneNumberResponse getPhoneNumber(MagicAuthDtos.GetPhoneNumberRequest props) throws Exception Get phone number with credential- Throws:
Exception
-
getMagicAuthSession
Get the current MagicAuth session -
setMagicAuthSession
Set the MagicAuth session manually -
clearMagicAuthSession
public void clearMagicAuthSession()Clear the MagicAuth session
-