A simple app to test the OAuth flow in Typeform and the different scopes provided.
You'll get to choose what scopes (permissions) you want to use to login with Typeform and then try them out.
- Clone the repo
- Run
yarn install
(ornpm install
) inside the repo directory - Copy the
.env.dist
file to a.env
file - Create an application in Typeform
- Make sure you set up the redirect URI to
http://localhost:9031/auth/typeform/redirect
. - You can replace
localhost:9031
with wherever you're running the app, but make sure the last part of the route is correct.
- Make sure you set up the redirect URI to
- Add the
CLIENT_ID
andCLIENT_SECRET
you got from Typeform on the previous step - Run
yarn start
(ornpm start
) to start the app - Go to
http://localhost:9031
to begin using it
These are optional values that can be added to the .env file
You can set up a REDIRECT_URI
here, otherwise it will default to http://localhost:9031/auth/typeform/redirect
.
Only change it if you also changed it in step 4.
AUTHORIZATION_URL
and TOKEN_URL
are there to use a local instance of the auth api.
If they're not provided, they default to production.
PORT
will be picked up by the app instead of 9301.
This project uses PassportJS and a custom passport-typeform strategy to connect via OAuth.