Skip to content

Commit 2885ddc

Browse files
committed
fix: use web redirect uri in token_web
1 parent d3d9213 commit 2885ddc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

firebase/functions/src/osm_auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import axios from 'axios';
2020
// will get a cryptic error about the server not being able to continue
2121
// TODO: adjust the prefix based on which deployment is done (prod/dev)
2222
const OAUTH_REDIRECT_URI = functions.config().osm?.redirect_uri;
23-
const OAUTH_REDIRECT_URI_WEB = functions.config().osm?.redirect_web;
23+
const OAUTH_REDIRECT_URI_WEB = functions.config().osm?.redirect_uri_web;
2424

2525
const APP_OSM_LOGIN_DEEPLINK = functions.config().osm?.app_login_link;
2626
const APP_OSM_LOGIN_DEEPLINK_WEB = functions.config().osm?.app_login_link_web;
@@ -265,7 +265,7 @@ export const token_web = async (req: any, res: any, admin: any) => {
265265
// this doesn't work
266266
results = await oauth2.authorizationCode.getToken({
267267
code: req.query.code,
268-
redirect_uri: OAUTH_REDIRECT_URI,
268+
redirect_uri: OAUTH_REDIRECT_URI_WEB,
269269
scope: OAUTH_SCOPES,
270270
state: req.query.state,
271271
});

0 commit comments

Comments
 (0)