Skip to main content

All Questions

0 votes
0 answers
93 views

Unable to get access token from myanimelist.net

node.js code router.post('/accessToken', async (req, res) => {debugger const { client_id,client_secret , grant_type, code, redirect_uri, code_verifier } = req.body; const basicAuth = Buffer.from(...
Guru Mukesh's user avatar
0 votes
0 answers
837 views

Troubleshooting "Failed to load resource: the server responded with a status of 500 (Internal Server Error)"

I'm encountering an issue in my web application where I'm receiving the error message "Failed to load resource: the server responded with a status of 500 (Internal Server Error)" in the ...
Djamila Azouane's user avatar
1 vote
0 answers
224 views

The accessToken I am getting from Auth0/NextJs not working on Routes

I am using @auth0/nextjs-auth0 for my nextJs login. This is my /[auth0].js code: import { handleAuth, handleLogin } from "@auth0/nextjs-auth0"; export default handleAuth({ login: ...
Olusanya Michael's user avatar
2 votes
0 answers
3k views

How to send requests including token using next-auth and fetch

I am implementing a project for seller hub (dashboard) for ecommerce website and I used next js and next-auth for making login and protected routes. I am using node js as a backend for the website. I ...
Xyz.WebDeveloper's user avatar
2 votes
1 answer
2k views

How to revoke access token of google drive login using google oauth2?

I have google drive sign in feature in my react nodejs application. When ever a user clicks on sign in, I am using Google oauth2 to get code and that to get access token and refresh token using client ...
Renee's user avatar
  • 331
1 vote
1 answer
308 views

how to use Access-Tokens for CRUD REACT JS

Given is an application for managing users. Following help files are used for this purpose: AuthenticationAction.js ManagementAction.js AuthenticationAction.js is used for authentication: export ...
user avatar
0 votes
1 answer
226 views

OAuth0 in react & nodejs environment

I have a site with React frontend (SPA) and NodeJS backend (for APIs) with NGINX. I want to implement OAuth0 authentication for this site. How can I use the authentication flow for the frontend & ...
Imre Revesz's user avatar
0 votes
1 answer
628 views

Storing Oauth access token and refresh tokens

I am currently integrating some third party api where they use oauth and my app is mern stack. I currently implemented oauth flow to only happen in the backend, Here is a sample of my code. when user ...
Thorai219's user avatar
0 votes
1 answer
2k views

Logout when token expired only when page is refreshed? Why?

i am finding difficult to understand if when token is expired and logout action is performed, this last action is only executed when the page is refreshed. Although when token expire the 401 code is ...
arkanoid's user avatar
0 votes
2 answers
1k views

What is the best way to get Google and Facebook access token for OAuth using React Native?

I'm getting the profile on server side. Just want the Access token on my frontend. passport.use('google', new GooglePlusTokenStratey ({ clientID: process.env.GCID, clientSecret: process.env.GCS, }, ...
Junaid Ahmed's user avatar
1 vote
0 answers
479 views

401 unauthorized response when trying to use GET method using Bearer token in react (Postman)

I am trying to show users (by GET request) from mongodb using and Bearer access token in Postman, but it says unauthorized and data is not retrieved from mongodb. I am working on MERN, I have created ...
ahmedaburaihan's user avatar
0 votes
1 answer
80 views

Backend spec for Authentication (React Native App)

I have just started working with react native and the backend of my app is handled by another company. I have a very simple login/ register feature where for register the user needs to enter the ...
j.Dorty's user avatar