I'm using the OpenId Connect hybrid flow. The middleware gets the access token and refresh token that I store in a database. Later, I use the access token to connect to a back-end web API.
When the access token is about to expire I think I'm supposed to use the refresh token to get a new access token. But, how? Is there a built-in method for doing that?