Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

81
Views
la próxima autenticación utiliza los datos devueltos por el proveedor personalizado de autorización

Tengo un proveedor personalizado en next-auth (last.fm). el usuario ya está siendo enviado a la URL de autorización y puede autenticar la aplicación allí. Last.fm luego envía al usuario de regreso a la URL de devolución de llamada (en este caso, localhost:3000/api/auth/callback/lastfm con un token en la consulta. ¿Cómo puedo acceder a este token en la consulta para solicitar un token de sesión?

 { id: "lastfm", name:"Last.fm", authorization: LfmauthUrl, // Useres Autheries the App, Provider returns token type: 'oauth', version: "2.0", clientId: process.env.LASTFM_API_KEY, token: { // url: "https://example.com/oauth/token", async request(context) { // I thougt that the token maybe could be in the context here. Couldnt find it tho console.log(context) await makeTokenRequest(context) } } }

Todo lo que realmente necesito es el token devuelto por last.fm después de la autenticación.

¡Gracias por cualquier ayuda!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!