π‘ [Feature]: extend access token lifetime
π― Aim of the feature
I got an awesome request from @DonKirkham during ECS conf that the access token lifetime is annoying and when doing longer tasks he sometimes needs to authenticate few times during his work.
TBH I also noticed that but with me the problem is that I am constantly building, refactoring this product and also CLI for M365 which constantly breaks my auth so I never really had a problem with that.
We should investigate first how the reauth works with refresh token when using the cjs version of CLI and check if the problem is not there first.
π· Images (if possible) with expected result
π€ Additional remarks or comments
No response
@nicodecleyre, @Saurabh7019 please give this a double check and let me know what is your experience with token lifetime of SPFx toolkit and what do you think of this issue. I will start investigating this in the coming weekend
The toolkit uses the authentication.getSession from @types\vscode which self manages the refresh token. But it seems there is an option forceNewSession we can use when there is no session, or when it returns the error message indicating that the Access token is expired
The toolkit uses the
authentication.getSessionfrom@types\vscodewhich self manages the refresh token. But it seems there is an optionforceNewSessionwe can use when there is no session, or when it returns the error message indicating that the Access token is expired
@nicodecleyre but do you also experience this token frequently expiring?
The toolkit uses the
authentication.getSessionfrom@types\vscodewhich self manages the refresh token. But it seems there is an optionforceNewSessionwe can use when there is no session, or when it returns the error message indicating that the Access token is expired@nicodecleyre but do you also experience this token frequently expiring?
Personally not encountered yet
@Saurabh7019 what about you?
do you also experience this token frequently expiring
I experience it and I agree it is annoying. I started noticing more and more after the login with support changes.
ok I'll start investigating this
so why does it happen with one, and it doesn't with the other. Is it timebased or is it random? π€
so why does it happen with one, and it doesn't with the other. Is it timebased or is it random? π€
no idea π€