Regenerate the Access Token

Learn how to regenerate the access token using the refresh token.

Since FreshBooks implement OAuth protocol for authorization, we need to refresh the access token once it expires. Let's execute the code in the widgets below to generate the access token using the refresh token.

Note: A new refresh token is generated every time we generate an access token, and it remains valid till the creation of a new access token. No matter how we generate an access token, either using a refresh token or by OAuth protocol, a new refresh token invalidates all previous tokens.

Get hands-on with 1200+ tech skills courses.