1.0.2 • Published 1 year ago

phis-rn-azure-login v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Installation

npm install phis-rn-azure-login

Setup

On your App.js

import { initialize } from 'phis-rn-azure-login'

initialize({
  config: {
    issuer:
      'issuer url',
    clientId: 'client id',
    redirectUrl: 'redirect url',
    scopes: ['put scopes here'],
  },
  storageKey: String,
  showLogs: Boolean,
})

Usage

On your button click

import { signIn } from 'phis-rn-azure-login'

const buttonClick = async () => {
    await signIn({isSilent: false, includePayload: true});
}
1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago