The oAuth 2.0 RFC 6749 recommends to use the parameter expires_in to set a token expiration time. When given this parameter should be used instead of the maxAge value for the token.
My Solutionen does not provide a way to overwrite the value, if this parameter is returned with the accessToken by an IDP. Maybe an improvement is required for this problem? If yes, I would be glad for any suggestion how to do so.
I explicit do not add this parameter to the id-token.ts, as an ID-Token must have the exp parameter, which will always overwrite the value. Required by openid
Not sure if using the boolean false value is a pretty way to handle the absence of expires_in
The oAuth 2.0 RFC 6749 recommends to use the parameter
expires_in
to set a token expiration time. When given this parameter should be used instead of the maxAge value for the token.My Solutionen does not provide a way to overwrite the value, if this parameter is returned with the accessToken by an IDP. Maybe an improvement is required for this problem? If yes, I would be glad for any suggestion how to do so.
I explicit do not add this parameter to the
id-token.ts
, as an ID-Token must have theexp
parameter, which will always overwrite the value. Required by openidNot sure if using the boolean
false
value is a pretty way to handle the absence ofexpires_in
Thanks for your review / feedback