The FuroProvider is a top-level component necessary when implementing the Furo login feature. It wraps all the paths where you want to use the Furo SDK.

Usage

// src/index.js
import React from 'react';
import ReactDOM from 'react-dom';
import { FuroProvider } from 'furo-react';
import App from './App';

ReactDOM.render(
  <FuroProvider
    domain="https://auth.furo.one"
    clientId="YOUR_CLIENT_ID_GOES_HERE"
    redirectUri={window.location.origin}
  >
    <App />
  </FuroProvider>,
  document.getElementById('root')
);

Props

NameTypeRequiredDescription
domainstringtrueFuro authentication server domain
clientIdstringtrueClient ID registered with the Furo authentication server
redirectUristringtrueRedirect URI to be used after login