Skip to content
Scalekit Docs
Talk to an EngineerDashboard

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.

clientPasswordlesshttps://github.com/scalekit-inc/scalekit-sdk-java/blob/main/src/main/java/com/scalekit/api/PasswordlessClient.java
#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");
clientPasswordlesshttps://github.com/scalekit-inc/scalekit-sdk-java/blob/main/src/main/java/com/scalekit/api/PasswordlessClient.java
#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);
clientPasswordlesshttps://github.com/scalekit-inc/scalekit-sdk-java/blob/main/src/main/java/com/scalekit/api/PasswordlessClient.java
#asyncresendPasswordlessEmail

Resend a passwordless authentication email

paramauthRequestIdString

The auth request ID from the original send response

returnsSendPasswordlessResponse

Send passwordless.

scalekitClient.passwordless().resendPasswordlessEmail("authreq_123");