How can I get a Microsoft graph refresh token using java SDK? I am using java SDK of graph and got the access token. How can I get a refresh token in java SDK using this accessToken?
For Client credential flow, you don't get the refresh token. You can simply request a new access token again. A better idea will be to use https://github.com/microsoftgraph/msgraph-sdk-java-auth for auto-refresh of access token which will save you a lot of programming efforts
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With