(miscellaneous)
Various endpoints that do not belong in any particular category.
- getInterstitial - 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.
declare(strict_types=1);
require 'vendor/autoload.php';
use Clerk\Backend;
$sdk = Backend\ClerkBackend::builder()->build();
$response = $sdk->miscellaneous->getInterstitial(
frontendApi: '<value>',
publishableKey: '<value>'
);
if ($response->statusCode === 200) {
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
frontendApi |
?string | ➖ | The Frontend API key of your instance |
publishableKey |
?string | ➖ | The publishable key of your instance |
?Operations\GetPublicInterstitialResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\SDKException | 4XX, 5XX | */* |