react-native-auth-service-client
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

react-native-auth-service-client

Demo app to test my package

Installation

npm install react-native-auth-service-client

Usage

import {
  addEvent,
  getEvent,
  deleteEvent,
} from 'react-native-auth-service-client';

// ...

const fetchValue = () => {
  // If android then you need to pass provider value other wise no need
  getEvent('com.demo.user.provider')
    .then((result) => setResult(result))
    .catch((err: any) => setResult('No data found in keychain'));
};

const deleteValue = () => {
  deleteEvent()
    .then((result) => setResult('Key Chain data '))
    .catch((err: any) => console.log(' save error==>', err));
};

const addValue = () => {
  console.log(email, password);
  addEvent(email, password)
    .then(fetchValue)
    .catch((err: any) => console.log(' save error==>', err));
};

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i react-native-auth-service-client

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

86.7 kB

Total Files

26

Last publish

Collaborators

  • shantanu_05