Can not change the issuer and audience of JWT header and also the payload
So tried to change the issuer and the audience of my jwt config by following the documentation but it's not working as expected here it's my config
'plugins: [
jwt({
jwt: {
issuer: env.BETTER_AUTH_URL,
audience: env.REDIRECT_PROXY_URL,
expirationTime: "1h",
},
jwks: {
keyPairConfig: {
alg: "EdDSA",
crv: "Ed25519",
},
},
}),
],'
so env.BETTER_AUTH_URL and env.REDIRECT_PROXY_URL are defined and i tried to hard coded some string and i get the same result , the audience and issuer that i get are the base wich in my situation is the url of my api2 Replies
The second problem is the ability to modify the payload that also dont' work as expected , i also tried to follow the docs , with this code
definePayload: (user) => {
return {
lo: user.user.id,
};
},
but i get the basic user as a payload and not what i definedare you on latest version?