Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to create an application using the Monzo Bank API
const express = require('express');
const request = require('request');
const app = express();
const oauthDetails = {
client_id: '[your client id]',
client_secret: '[your client secret]',
redirect_uri: 'http://localhost:3000/oauth/callback'
// Will be populated once received
let accessToken = null;
app.get('/', (req, res) => {
const { client_id, redirect_uri } = oauthDetails;
const monzoAuthUrl = '';
<form action="${monzoAuthUrl}">
<input type="hidden" name="client_id" value="${client_id}" />
<input type="hidden" name="redirect_uri" value="${redirect_uri}" />
<input type="hidden" name="response_type" value="code" />
<button>Sign in</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.