0.0.4 • Published 2 years ago

oa-auth v0.0.4

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

OA Auth Client

The OA Authentication Helper Library. The OA Auth helper library lets you write javascript code to make HTTP requests to the OA-Auth API. This library is intended for front-end, client-side applications using React, React Native, or plain HTML/CSS/Javascript.

Visit Docs for more info.

Install

With npm:

npm install oa-auth

or with yarn:

yarn add oa-auth

Usage

const url = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; // Your OA auth URL
const headers = {}; // Your OA tokens ( accessToken, refreshToken, idToken )

import Auth from 'oa-auth';
const client = Auth({ url, headers });

(async () => {
  const { data, error } = await client.getCountries();
  console.log('data', data);
  console.log('error', error);
})();
0.0.4

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago