@@ -38,11 +38,11 @@ const OSM_API_URL = functions.config().osm?.api_url;
3838 * Configure the `osm.client_id` and `osm.client_secret`
3939 * Google Cloud environment variables for the values below to exist
4040 */
41- function osmOAuth2Client ( client_id , client_secret ) {
41+ function osmOAuth2Client ( client_id : any , client_secret : any ) {
4242 const credentials = {
4343 client : {
44- id : functions . config ( ) . osm ?. client_id ,
45- secret : functions . config ( ) . osm ?. client_secret ,
44+ id : client_id ,
45+ secret : client_secret ,
4646 } ,
4747 auth : {
4848 tokenHost : OSM_API_URL ,
@@ -60,7 +60,7 @@ function osmOAuth2Client(client_id, client_secret) {
6060 * NOT a webview inside MapSwipe, as this would break the promise of
6161 * OAuth that we do not touch their OSM credentials
6262 */
63- function redirect2OsmOauth ( req , res , redirect_uri , client_id , client_secret ) {
63+ function redirect2OsmOauth ( req : any , res : any , redirect_uri : string , client_id : string , client_secret : string ) {
6464 const oauth2 = osmOAuth2Client ( client_id , client_secret ) ;
6565
6666 cookieParser ( ) ( req , res , ( ) => {
@@ -123,7 +123,7 @@ async function getOSMProfile(accessToken: string) {
123123 * The Firebase custom auth token, display name, photo URL and OSM access
124124 * token are sent back to the app via a deeplink redirect.
125125 */
126- function fbToken ( req , res , admin , redirect_uri , osm_login_link , client_id , client_web ) {
126+ function fbToken ( req : any , res : any , admin : any , redirect_uri : string , osm_login_link : string , client_id : string , client_web : string ) {
127127 const oauth2 = osmOAuth2Client ( client_id , client_web ) ;
128128
129129 try {
0 commit comments