Interface MagicLinks.EmailMagicLinks
-
- All Implemented Interfaces:
public interface MagicLinks.EmailMagicLinksProvides all possible ways to call EmailMagicLinks endpoints
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMagicLinks.EmailMagicLinks.ParametersData class used for wrapping parameters used with MagicLinks.EmailMagicLinks.loginOrCreate
-
Method Summary
Modifier and Type Method Description abstract StytchResult<BasicData>loginOrCreate(MagicLinks.EmailMagicLinks.Parameters parameters)Send either a login or signup magic link to the user based on if the email is associated with a user already. abstract UnitloginOrCreate(MagicLinks.EmailMagicLinks.Parameters parameters, Function1<StytchResult<BasicData>, Unit> callback)Send either a login or signup magic link to the user based on if the email is associated with a user already. abstract CompletableFuture<StytchResult<BasicData>>loginOrCreateCompletable(MagicLinks.EmailMagicLinks.Parameters parameters)Send either a login or signup magic link to the user based on if the email is associated with a user already. abstract StytchResult<BasicData>send(MagicLinks.EmailMagicLinks.Parameters parameters)Send a magic link to an existing Stytch user using their email address. abstract Unitsend(MagicLinks.EmailMagicLinks.Parameters parameters, Function1<StytchResult<BasicData>, Unit> callback)Send a magic link to an existing Stytch user using their email address. abstract CompletableFuture<StytchResult<BasicData>>sendCompletable(MagicLinks.EmailMagicLinks.Parameters parameters)Send a magic link to an existing Stytch user using their email address. -
-
Method Detail
-
loginOrCreate
abstract StytchResult<BasicData> loginOrCreate(MagicLinks.EmailMagicLinks.Parameters parameters)
Send either a login or signup magic link to the user based on if the email is associated with a user already. A new or pending user will receive a signup magic link. An active user will receive a login magic link.
- Parameters:
parameters- required to receive magic link- Returns:
BaseResponse
-
loginOrCreate
abstract Unit loginOrCreate(MagicLinks.EmailMagicLinks.Parameters parameters, Function1<StytchResult<BasicData>, Unit> callback)
Send either a login or signup magic link to the user based on if the email is associated with a user already. A new or pending user will receive a signup magic link. An active user will receive a login magic link.
- Parameters:
parameters- required to receive magic linkcallback- a callback that receives a BaseResponse
-
loginOrCreateCompletable
abstract CompletableFuture<StytchResult<BasicData>> loginOrCreateCompletable(MagicLinks.EmailMagicLinks.Parameters parameters)
Send either a login or signup magic link to the user based on if the email is associated with a user already. A new or pending user will receive a signup magic link. An active user will receive a login magic link.
- Parameters:
parameters- required to receive magic link- Returns:
BaseResponse
-
send
abstract StytchResult<BasicData> send(MagicLinks.EmailMagicLinks.Parameters parameters)
Send a magic link to an existing Stytch user using their email address. If you'd like to create a user and send them a magic link by email with one request, use loginOrCreate
- Parameters:
parameters- required to receive magic link- Returns:
BaseResponse
-
send
abstract Unit send(MagicLinks.EmailMagicLinks.Parameters parameters, Function1<StytchResult<BasicData>, Unit> callback)
Send a magic link to an existing Stytch user using their email address. If you'd like to create a user and send them a magic link by email with one request, use loginOrCreate
- Parameters:
parameters- required to receive magic linkcallback- a callback that receives a BaseResponse
-
sendCompletable
abstract CompletableFuture<StytchResult<BasicData>> sendCompletable(MagicLinks.EmailMagicLinks.Parameters parameters)
Send a magic link to an existing Stytch user using their email address. If you'd like to create a user and send them a magic link by email with one request, use loginOrCreate
- Parameters:
parameters- required to receive magic link- Returns:
BaseResponse
-
-
-
-