How to use the @react-keycloak/web.withKeycloak function in @react-keycloak/web

To help you get started, we’ve selected a few @react-keycloak/web examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github panz3r / react-keycloak / examples / react-navi / src / pages / Login.js View on Github external
import React from 'react'
import { route } from 'navi'
import { withKeycloak } from '@react-keycloak/web'

const LoginPage = withKeycloak(({ keycloak }) => {
  return (
    <div>
      <button type="button"> keycloak.login()}&gt;
        Login
      </button>
    </div>
  )
})

export default route({
  title: 'Login',
  view: 
})

@react-keycloak/web

React bindings for Keycloak javascript adapter

MIT
Latest version published 4 years ago

Package Health Score

59 / 100
Full package analysis

Popular @react-keycloak/web functions