Glenn Prince
BABetter Auth
•Created by Glenn Prince on 4/29/2025 in #help
Saving Additional information from a Generic OAuth endpoint
Hi all, been playing around a little with the generic OAuth plugin to hook up to an Identity provider and I have two questions I can't seem to find any potential resolution for and was hoping to get some help.
1) The refresh token expiry doesn't seem to save / populate. It looks like it returns in the OAuth token as "x_refresh_token_expires_in". Is there a way to overwrite the generic oauth default to save this to the database?
2) The returned id token from the provider supplies some additional properties I am hoping to snag in addition to sub / aud / iss etc. Is there a way to setup a hook to save these propertites out of the id token ?
2 replies