Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Maged's avatar
Level 6

Where to store third party api access tokens ?

I'm using (Zoom Api) in my application and i hit a url to get access token and refresh token by my question is

1- Where would you store these tokens ? 2- How to check before each request if the user has the token ? middleware ?? 3- When the token expires how do you check that ? i mean do you wait for the response to tell you that so you hit the url to refresh the token ? or you run command each hour to refresh all tokens ?

Hope i was clear enough

0 likes
2 replies
Tray2's avatar

Just guessing here but the zoom api most likely have an validate token method you can hit to see if it's still valid. Store it in the session is the easiest way to handle it. Zoom might even set a ttl on the token then you can put that in the session as well and refresh it when it has expired.

You can find everything here https://marketplace.zoom.us/docs/api-reference/introduction

Maged's avatar
Level 6

Couldn't find any available validate methods provided by zoom

Please or to participate in this conversation.