(miscellaneous())
- getPublicInterstitial - Returns the markup for the interstitial page
The Clerk interstitial endpoint serves an html page that loads clerk.js in order to check the user's authentication state. It is used by Clerk SDKs when the user's authentication state cannot be immediately determined.
package hello.world;
import com.clerk.backend_api.Clerk;
import com.clerk.backend_api.models.components.*;
import com.clerk.backend_api.models.operations.*;
import com.clerk.backend_api.utils.EventStream;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;
import static java.util.Map.entry;
public class Application {
public static void main(String[] args) throws Exception {
try {
Clerk sdk = Clerk.builder()
.build();
GetPublicInterstitialResponse res = sdk.miscellaneous().getPublicInterstitial()
.frontendApi("<value>")
.publishableKey("<value>")
.call();
// handle response
} catch (com.clerk.backend_api.models.errors.SDKError e) {
// handle exception
throw e;
} catch (Exception e) {
// handle exception
throw e;
}
}
}
Parameter | Type | Required | Description |
---|---|---|---|
frontendApi |
Optional<? extends String> | ➖ | The Frontend API key of your instance |
publishableKey |
Optional<? extends String> | ➖ | The publishable key of your instance |
Optional<? extends com.clerk.backend_api.models.operations.GetPublicInterstitialResponse>
Error Object | Status Code | Content Type |
---|---|---|
models/errors/SDKError | 4xx-5xx | / |