Skip to content

Latest commit

 

History

History
56 lines (34 loc) · 1.76 KB

README.md

File metadata and controls

56 lines (34 loc) · 1.76 KB

Miscellaneous

(miscellaneous)

Overview

Various endpoints that do not belong in any particular category.

Available Operations

getInterstitial

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.

Example Usage

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
}

Parameters

Parameter Type Required Description
frontendApi ?string The Frontend API key of your instance
publishableKey ?string The publishable key of your instance

Response

?Operations\GetPublicInterstitialResponse

Errors

Error Type Status Code Content Type
Errors\SDKException 4XX, 5XX */*