News Articles oauth-2.0

Google deprecation notice for OAuth 2.0

I got this mail from google a few months ago, there is some page that describing this deprecation? Does September 13 is really the last day I can use "HTTP" schema in my services with google javascript OAuth ? The mail: Hello Google Developer, We are writing to let you know that you have active […]

No refresh token or refresh handler callback is set

I am trying to send Email using Nodemailer and OAuth2. It was working on localhost but not on Heroku so, I added OAuth to Nodemailer createTransport. But now it is not working even on localhost. My code is: const oAuth2Client =new google.auth.OAuth2(process.env.CLIENT_ID,process.env.CLIENT_SECRET,process.env.REDIRECT_URI); oAuth2Client.setCredentials({refresh_token:process.env.REFRESH_TOKEN}); const sendMail =async(email,code)=>{ try {const accessToken = await oAuth2Client.getAccessToken(); let transport = […]

Login to the same account with google/facebook passport strategies

I currently have Google and Facebook login in my node.js app using Passport.js strategies. but each of them creates separate account because the current queries say: let user = await User.findOne({ facebookId: profile.id }); or let user = await User.findOne({ googleId: profile.id }); respectively. I’m trying to make it log to the same account – […]

401 unauthorized guild.join user via bot on DISCORD

So, I am basically creating a popup that asks to the user to authorize discord access, and then I retrieve a code, with this code I get the token, and then I make another api call ("PUT") to join this user to the server, and it responds me with an 401 unauthorized, I’ve looked the […]

401 unauthorized guild.join user via bot on DISCORD

So, I am basically creating a popup that asks to the user to authorize discord access, and then I retrieve a code, with this code I get the token, and then I make another api call ("PUT") to join this user to the server, and it responds me with an 401 unauthorized, I’ve looked the […]

401 unauthorized guild.join user via bot on DISCORD

So, I am basically creating a popup that asks to the user to authorize discord access, and then I retrieve a code, with this code I get the token, and then I make another api call ("PUT") to join this user to the server, and it responds me with an 401 unauthorized, I’ve looked the […]

401 unauthorized guild.join user via bot on DISCORD

So, I am basically creating a popup that asks to the user to authorize discord access, and then I retrieve a code, with this code I get the token, and then I make another api call ("PUT") to join this user to the server, and it responds me with an 401 unauthorized, I’ve looked the […]

firebase google authentication with token

I am new to reactjs world I am working on one small project for where reactjs and firebase connectivity is needed I am working on firebase google authentication, small part I have implemented as shown below, LoginPage.js import { auth,provider } from ‘../firebase’ const loginMethod=()=>{ auth.signInWithPopup(provider).then((result)=>{ dispatch( setVariableInfo({ var1:result.user.displayName, var2:result.user.email, var3:result.user.photoURL }) ) }) } […]

Amplify Federated Sign In not returning Email for Facebook

I’m using AWS Amplify to add social signing. With google I’m getting the email of the user but it’s missing in facebook. This is my code: federatedSignIn(provider: any): void { switch (provider) { case ‘facebook’: console.log("Authenticating using Facebook"); Auth.federatedSignIn({ provider: CognitoHostedUIIdentityProvider.Facebook }); break; case ‘google’: console.log("Authenticating using Google"); Auth.federatedSignIn({ provider: CognitoHostedUIIdentityProvider.Google }); break; } } […]

can individual user (browser)get event callback google calendar api?

We wrote an online chat app. The app would allow end users (via browsers) to connect to their own google calendars and add calendar events to calendar ‘primary’ (as calendarId). My question is: does Google provide an oauth2 like paradigm for google calendar api access so we can implement the code in a similar way? […]

Unable to get scheduled live stream using facebook live video api

I’m trying to fetching the upcoming/scheduled live stream via Facebook Live Video API. The end point I’m using GET /{node-id}/live_videos?broadcast_status=["SCHEDULED_UNPUBLISHED"] I can get the current live stream video Current Live Stream Response But I get empty array as response when fetching Scheduled broadcasts. Scheduled Live Stream Response Source: JavaSript – Stack Overflow

Can I get the token through url fragement such as clientId etc. in azure directly?

Say I have clientId, tenantId, tokenType, redirectUri etc in azure. Can I use those parameters to get access token directly? I know there is a way which is to combine them together to create a long string. const url = ‘https://login.microsoft.com/’+ tenantId+’/oauth2/v2.0/authorize?client_id=’+clientId+’response_type=id_token&redirect_uri=window.location.origin&response_mode=fragment&scope=openid&state=11111&nonce=11111’; Then I open a new window window.open(url, ‘_self’); Once the new window pops […]

JS How to get discord account data via oauth2

I am developing a moderation bot for discord, I am trying to create a paid plan and therefore I need users to log in with their discord account with oauth2 so that I can fetch user data and know which server has the pay plan, chin. So for now I just created an oauth2 url […]

Setting up a development environment for working with 0Auth 2.0

I’m curious if anyone else has encountered this issue. I am building an application that will authenticate users using Google 0Auth 2.0 + OpenID. I’ve built a simple site just with HTML and CSS to hold the UI and I’m using live server in Vscode to view it. In The Google developer console for oauth, […]

How to show my custom modal when user is trying to sign up with same Gmail Account using oauth2.0?

I have successfully restricted the user from creating multiple accounts with oauth2.0 I just need to show my custom modal when user is trying to do so Can someone help me ASAP? Source: JavaSript – Stack Overflow

How to implement the OAuth2 Authorization code grant for a React single page application?

I have a task to implement OAuth2 Authorization Code flow for our React UI. we have our organization custom Oauth2 provider (which only accept Authorization Code grant type). I don’t want to implement the OIDC logic manually, I saw that a lot of example that use oidc-client library on implicit grant, but I couldn’t find […]

invalid_code error with authenticating Slack app

I have an issue that seems to come and go – at least I haven’t been able to pinpoint it. Often I’m not able to authenticate my Slack app, and the error in the response is invalid_code, even though I’m passing the code I just received back to Slack Has anyone come across this issue? […]

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.