https://github.com/netlify/netlify-oauth-example
https://github.com/netlify/netlify-oauth-example
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/netlify/netlify-oauth-example
- Owner: netlify
- Created: 2016-09-22T05:14:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-01T14:25:16.000Z (over 1 year ago)
- Last Synced: 2025-04-26T16:59:27.495Z (about 2 months ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 15
- Watchers: 2
- Forks: 16
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> See updated OAuth example [here](https://github.com/netlify-labs/oauth-example)
# Example of using Netlify's OAuth2 Provider
This demo will show how to ask a user to authorize your app with Netlify, and get
back and access token that you can use to do deploys, list sites, etc, etc, via
Netlify's API.## Installation
Clone this repository and do a quick deploy to netlify:
```bash
npm install netlify-cli -g
netlify deploy --path example/
```Then visit the URL of your new site and follow the instructions.
## Source Code
To follow along, just read the file [example/app.js](example/app.js) and see how
the flow is implemented.