@slashid/jump-page
v1.0.5
Published
This package implements the SlashID verification page as a React component. This allows self hosting the verification page as this component can be rendered in any React application.
Downloads
1,961
Keywords
Readme
/id - SDK Verification page
This package implements the SlashID verification page as a React component. This allows self hosting the verification page as this component can be rendered in any React application.
Installation
Use any package manager you prefer:
$ npm install @slashid/jump-page
Usage
First import the default styles:
import "@slashid/jump-page/style.css"
Then render the Verification
component:
import { Verification } from "@slashid/jump-page"
import "@slashid/jump-page/style.css"
export function VerificationPage() {
return <Verification />
}
Configuration
By default, the Verification
component uses the production
environment. You can switch to the sandbox
environment by passing the corresponding value as the environment
prop:
<Verification environment="sandbox" />
A custom environment can be used by specifying the API and SDK URLs:
import { Verification, type Environment } from "@slashid/jump-page"
import "@slashid/jump-page/style.css"
export function App() {
const customEnvironment: Environment = { baseURL: config.baseURL, sdkURL: config.sdkURL }
return <Verification environment={environment} />
}
Customisation
Verification page can be customised using the SlashID Console.