Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

In express redirect user to external url

//use res.redirect to redirect user to external url
app.get('/api/auth/discord', async (req, res) => {
  res.redirect(
    'https://discord.com/api/oauth2/authorize?client_id=989911480243748924&redirect_uri=http%3A%2F%2Flocalhost%3A5000%2Fapi%2Fauth%2Fdiscord%2Fredirect&response_type=code&scope=identify%20guilds'
  );
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: sap rpa desktop studio activate excel macro 
Javascript :: Simple Backbone Example 
Javascript :: javascript nodejs array to listnode 
Javascript :: How many options are there to climb a ladder with N 
Javascript :: React Futures - Server Components 
Javascript :: adding javascript object within array in the middle position 
Javascript :: Initialize View With Collection Backbone 
Javascript :: How to fix prettier messing up your HTML on save 
Javascript :: javascript reducers 
Javascript :: get selected data items kendo grid 
Javascript :: anonymous function js 
Javascript :: javascript last value of array 
Javascript :: character length jquery 
Javascript :: js new function 
Javascript :: switch 
Javascript :: match all characters regex 
Javascript :: async await return promise 
Javascript :: animation js 
Javascript :: join text javascript 
Javascript :: EFSavechanges 
Javascript :: useScrollPrecent 
Javascript :: javascript prototype chaining 
Javascript :: javascript Assign Default Values 
Javascript :: javascript statements 
Javascript :: React ES6 Modules 
Javascript :: bootstrap on tabs change 
Javascript :: flip image on x axis phaser 
Javascript :: phaser add animation event 
Javascript :: mui adding eye toggle at password field 
Javascript :: Expresion regular para validar contraseñas 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =