Passwordless login
Send and verify passwordless login codes
Use scalekitClient.passwordless() to send and verify email magic links or one-time codes for sign-in.
Call send, then verify with the code or link token from the user’s email to complete login.
sendPasswordlessEmail
Section titled “sendPasswordlessEmail”#asyncsendPasswordlessEmail
Send a passwordless authentication email with default options
paramemailString
The email address to send the passwordless link to
returnsSendPasswordlessResponse
Send passwordless.
scalekitClient.passwordless().sendPasswordlessEmail("user@acme.com");verifyPasswordlessEmail
Section titled “verifyPasswordlessEmail”#asyncverifyPasswordlessEmail
Verify a passwordless authentication code or link token without auth request ID
paramcredentialVerifyPasswordlessOptions
The credential to verify (code or linkToken)
returnsVerifyPasswordLessResponse
Verified claims or result.
import com.scalekit.internal.http.VerifyPasswordlessOptions;
VerifyPasswordlessOptions credential = new VerifyPasswordlessOptions();credential.setLinkToken("<magic_link_token>");
scalekitClient.passwordless().verifyPasswordlessEmail(credential);resendPasswordlessEmail
Section titled “resendPasswordlessEmail”#asyncresendPasswordlessEmail
Resend a passwordless authentication email
paramauthRequestIdString
The auth request ID from the original send response
returnsSendPasswordlessResponse
Send passwordless.
scalekitClient.passwordless().resendPasswordlessEmail("authreq_123");