Jwtmalformed error

hey, i’m fairly new in graphql and still learning about it, while authenticating with google using jwt it is showing jwtmalformed error later i checked my token on jwt.io its showing invalid signature and that my payload should of a vaild json object

my token is
eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..C-Ex6hvs76UNxvkB.QtcRwgfk8Y8YoAX7wJLYXmdyMmpMj2_UIIZMNyrIAUwtmrk_n9W62TrILlcrI528dt0FhsUkve6Ma8K0i_O3ralBEQA6S6Nnn-0Qsnclnm91OhK_VPywzclS-XICC_1n_OXNx7evgfuvhTrISe3zhoIkrZTUxhLvZ18dRiG_8ZBFGOBjmV4en2-rzoGMoh_lbPKbyfK6XipYUird-rFuRlbT07rbsCF9f6-1iZX7TF_U8npuhNc8UNA_p43apn5AR-i68zJdOg-jgOOO5wbkhPDIU-lzCJ94Sfaz64rRjARX-mUJxNElQzILlxrwS8w-jn8CVzMfRThN7pIOHR3OFn6WEDNBdpFU0UIbiz95TDCu7Q.ewHZ9_0QmBqcMkyjTriiTQ'

please help me with this problem been stuck with days

Hi @sharma.sumukh0088,

Welcome to the Auth0 Community!

Could you please share the exact steps and code you took to get an access token?

Thanks,
Rueben

 jwt: {
    encode: ({ secret, token }) => {
      const encodedToken =jsonwebtoken.sign(
        {
          ...token,
          iss: "grafbase",
          exp: Math.floor(Date.now() / 1000) + 60 * 60,
        
        },
        secret
      );
    
      return encodedToken;
    },
    decode: async ({ secret, token }) => {
        console.log({token})
      const decodedToken = jsonwebtoken.verify(token!, secret);
        console.log("decoded token here")
        console.log({decodedToken})
      return decodedToken as JWT;

    },
  },`

from here this is my session.ts file

Hi @sharma.sumukh0088,

Thanks for the reply.

Could you please clarify if you passed in an audience parameter in your request to get an access token?

And if possible, could you please share your access token with me in a direct message so I can try to decode it on my end?

Thanks,
Rueben