Skip to content

Conversation

Azridum
Copy link
Contributor

@Azridum Azridum commented Mar 21, 2025

So we use this library but now we want to store the tokens in HttpOnly cookies. Like this when we want to get a new access token with the refresh token we have to get the refresh token from the cookie and our client can't include it in the request body.

The default functionality is the same as before and I have included a new handler for the cookie too. I have included some unit tests too.

@Azridum Azridum changed the title Refresh token resolve handler Refresh and Access token resolve handler Mar 26, 2025
BearerAuth function changed to AccessTokenResolveHandler removed unused dep setter
@LyricTian LyricTian merged commit cb11980 into go-oauth2:master Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants