So i have been reading about the difference between ID token and access token is for authorization. I don't know how to implement the ID token, which should be a JWT.
The access token i have been implementing looks like this:
const accountCredentials = {
username: account.username,
accountId: account.accountId,
grant_type: "password"
}
const token = jwt.sign(accountCredentials, config.JWT_KEY, { expiresIn: "1h" })
so i wonder, what is an ID token supposed to contain and how to implement it as described by the openID connect specification. I'm sorry, this might sound stupid but i really don't understand the documentation.