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

https://github.com/netlify/netlify-oauth-example


https://github.com/netlify/netlify-oauth-example

Last synced: about 2 months ago
JSON representation

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.