Replies: 1 comment
-
Looking at your code, I don't see anything significantly different than what I'm doing. However, I set up the provider - particularly the issuer - slightly differently. Maybe it's worth a try:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having trouble configuring the 5.0.0-beta.25 to communicate with TenantID, also referenced as issuer-specific authentication. Starting a discussion with the group to see if there are any tips or suggestions. I've scoured the internet and tried many things. I'll work on an isolated project reproduction in coming days but ideas and suggestions are appreciated!!
Here's my environment:
npx envinfo --system --binaries --npmPackages "{next,react,next-auth,@auth}"
System:
OS: Linux 5.15 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
Memory: 14.09 GB / 15.48 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 22.13.1 - ~/.nvm/versions/node/v22.13.1/bin/node
npm: 11.0.0 - ~/.nvm/versions/node/v22.13.1/bin/npm
npmPackages:
next-auth: beta => 5.0.0-beta.25
react: 19.0.0 => 19.0.0
Here's where the errors show in my console:
node_modules/jose/dist/node/esm/util/decode_jwt.js
export function decodeJwt(jwt) {
if (typeof jwt !== 'string')
throw new JWTInvalid('JWTs must use Compact JWS serialization, JWT must be a string');
const { 1: payload, length } = jwt.split('.');
if (length === 5)
throw new JWTInvalid('Only JWTs using Compact JWS serialization can be decoded');
if (length !== 3)
throw new JWTInvalid('Invalid JWT');
if (!payload)
throw new JWTInvalid('JWTs must contain a payload');
let decoded;
try {
node_modules/next-auth/node_modules/@auth/core/lib/actions/callback/oauth/callback.js
Here's my auth.ts with many trial/error comments:
Beta Was this translation helpful? Give feedback.
All reactions