Github API rate limit Java Spring Boot application

I use the github API in my Spring Boot application. For unauthorized queries, github has a limit of 60 queries per hour, and 5000 for authorized queries. How can I use this in my application? I already have OAuth2 authorization, everything seems to work, but I still don’t use the authorized query limit. Could someone help me?