Replies: 2 comments
-
Assuming you are using TheLeague’s OAuth2 code, you need a one-line code addition is needed to TheLeague oauth2-client/src/Token/AccessToken.php.
Then immediately after this line add the line:
that stores the token as a session variable and tries to ensure that the variable name is not used elsewhere. Then retrieve it in your own global class or code with something like:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you. I'll give this a go! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a quick question to possibly clear up some confusion or misconceptions on my part.
First of all I have Azure AD OAuth and PHPmailer working great; Sending mails no problem. My question is regarding the Refresh Token. Is there not a mechanism (or perhaps some config I have missed) that auto-updates the Refresh Token? Currently, I'm having to do it manually every 90 days using the get_oauth_token script when it expires.
Any help or insight would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions