1.0.2 • Published 3 years ago

phis-rn-azure-login v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years 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

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago