Token location

Windows

%HOMEPATH%/.azure/

Example:

*Evil-WinRM* PS C:\\Users\\RyanMacdonald\\.azure> dir

    Directory: C:\\Users\\RyanMacdonald\\.azure

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----         5/10/2023   1:15 PM                commands
d-----          5/9/2023  12:16 PM                logs
d-----         5/10/2023  10:15 AM                telemetry
-a----         5/10/2023  12:45 PM           5602 accessTokens.json
-a----          5/9/2023  12:16 PM              5 az.json
-a----         5/10/2023  12:30 PM              5 az.sess
-a----         5/10/2023   1:15 PM            434 azureProfile.json
-a----         5/10/2023   1:15 PM             69 clouds.config
-a----          5/9/2023  12:16 PM           5112 commandIndex.json
-a----          5/9/2023  12:16 PM             30 config
-a----         5/10/2023   1:15 PM             19 telemetry.txt
-a----          5/9/2023  12:16 PM            211 versionCheck.json

Linux

~/.azure/

Via PowerShell

Get-AzAccessToken