Interface MagicLinks

  • All Implemented Interfaces:

    
    public interface MagicLinks
    
                        

    MagicLinks interface that encompasses authentication functions as well as other related functionality

    • Constructor Detail

    • Method Detail

      • authenticate

         abstract StytchResult<IAuthData> authenticate(MagicLinks.AuthParameters parameters)

        Authenticate a user given a magic link. This endpoint verifies that the magic link token is valid, hasn't expired or been previously used.

        Parameters:
        parameters - required to authenticate
        Returns:

        AuthResponse

      • authenticate

         abstract Unit authenticate(MagicLinks.AuthParameters parameters, Function1<StytchResult<IAuthData>, Unit> callback)

        Authenticate a user given a magic link. This endpoint verifies that the magic link token is valid, hasn't expired or been previously used.

        Parameters:
        parameters - required to authenticate
        callback - a callback that receives an AuthResponse