Skip to content

Latest commit

 

History

History
70 lines (53 loc) · 2.55 KB

README.md

File metadata and controls

70 lines (53 loc) · 2.55 KB

Miscellaneous

(miscellaneous())

Available Operations

getPublicInterstitial

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

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;
        }
    }
}

Parameters

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

Response

Optional<? extends com.clerk.backend_api.models.operations.GetPublicInterstitialResponse>

Errors

Error Object Status Code Content Type
models/errors/SDKError 4xx-5xx /