Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/czystyl/oauth-client
OAuth Client
https://github.com/czystyl/oauth-client
browser client oauth oauth2-client
Last synced: 26 days ago
JSON representation
OAuth Client
- Host: GitHub
- URL: https://github.com/czystyl/oauth-client
- Owner: czystyl
- License: mit
- Created: 2017-12-30T21:27:36.000Z (about 7 years ago)
- Default Branch: develop
- Last Pushed: 2022-12-07T00:46:36.000Z (about 2 years ago)
- Last Synced: 2024-10-28T17:21:02.762Z (3 months ago)
- Topics: browser, client, oauth, oauth2-client
- Language: JavaScript
- Size: 344 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![alt text](https://travis-ci.org/czystyl/oauth-client.svg?branch=feature%2Ftravis)
# OAuth Client
Http client based on [Axios](https://github.com/axios/axios) for using with oauth server.
## Pre requirements
Before use You need to provide set environment variable:
* `APIURL` - baseUrl for Axios instance
* `TOKEN_ENDPOINT` - OAuth server endpoint
* `CLIENT_ID` - OAuth client id
* `CLIENT_SECRET` - OAuth client client_secret## Usage
Usage is the same like using clean axios, see example [here](https://github.com/axios/axios#example)
> Remember to set environment variable before use client
## Features
* Adding token to each request
* Using refresh token
* Getting token
* Tokens are stored in memory and localStorage