Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/p-chan/onsen-auth

Onsen Auth Libarary
https://github.com/p-chan/onsen-auth

onsen

Last synced: about 1 month ago
JSON representation

Onsen Auth Libarary

Awesome Lists containing this project

README

        

# onsen-auth

> Onsen Auth Libarary

## Install

```shell
$ npm install onsen-auth
```

## Usage

```js
import { getAuthorizationCode, getAccessToken } from 'onsen-auth'

const authorizationCode = await onsenAuth.getAuthorizationCode(
'[email protected]',
'password'
)
const accessToken = await onsenAuth.getAccessToken(authorizationCode)

console.log(accessToken)
```