Interface MagicLinks.EmailMagicLinks

  • All Implemented Interfaces:

    
    public interface MagicLinks.EmailMagicLinks
    
                        

    Provides all possible ways to call EmailMagicLinks endpoints

    • Constructor Detail

    • 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 link
        callback - a callback that receives a 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 link
        callback - a callback that receives a BaseResponse