Closed bravokeyl closed 4 years ago
Hi @bravokeyl
Token handling is not something the bot does; it does not automatically refresh. The OAuth samples are meant to show simple implementation of sign-in and sign-out logic. As you've already asked this question on stackoverflow, I'm going to close this issue, and answer further queries there.
@jwiley84 Thanks for the quick response.
I'm confused from the comments in the code. I thought when we call the prompt it returns the new token if the previous token is expired, is my assumption wrong here?
@jwiley84 Stumbled upon on the same thing today, I'm wondering how we can retreive a new token. It would be great to add some notes on how to do that. Currently I can see that there is no way to renew the token as we just get a hold on accestoken and no refresh token is received.
What are the possible ways to retreive a new token without re-prompting the user with sign-in card?
@jwiley84 @pujita9610 Yes, it would be very helpful if there are notes/guidance on how to retrieve a new token with oAuthCard
@jwiley84 Any further input on this would be great to retrieve the valid token. Thanks
Any updates on this issue ?
Sample information
Describe the bug
I'm using sample auth with AADV2 connection and custom scope. The token is not renewed and receiving the expired token.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Additional context
https://stackoverflow.com/questions/62527519/teams-bot-auth-oauth-card-prompts-for-login-every-hour-with-aadv2
[bug]