Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/p-chan/onsen-auth
- Owner: p-chan
- Created: 2020-08-01T02:29:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T17:56:37.000Z (about 2 years ago)
- Last Synced: 2024-12-12T19:53:36.282Z (about 1 month ago)
- Topics: onsen
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/onsen-auth
- Size: 59.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
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)
```