Hi @daniel12,
Welcome to the Auth0 Community!
The access token is typically used with requests made to resource servers. The ID token is used by the client application.
More on the difference here: ID Token and Access Token: What Is the Difference?
This resource is helpful with examples for accessing protected routes and refresh token flows: