mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-03-13 14:30:10 +08:00
Added comment explaining usage of setMobileAppAccessToken
This commit is contained in:
parent
7605dc8a41
commit
d0da148d6b
@ -26,6 +26,10 @@ async function main() {
|
||||
community.setCookies(cookies);
|
||||
community.setMobileAppAccessToken(accessToken);
|
||||
|
||||
// Enabling or disabling 2FA is presently the only action in node-steamcommunity which requires an access token.
|
||||
// In all other cases, using `community.setCookies(cookies)` is all you need to do in order to be logged in,
|
||||
// although there's never any harm in setting a mobile app access token.
|
||||
|
||||
doRevoke();
|
||||
});
|
||||
|
||||
|
@ -29,6 +29,10 @@ async function main() {
|
||||
community.setCookies(cookies);
|
||||
community.setMobileAppAccessToken(accessToken);
|
||||
|
||||
// Enabling or disabling 2FA is presently the only action in node-steamcommunity which requires an access token.
|
||||
// In all other cases, using `community.setCookies(cookies)` is all you need to do in order to be logged in,
|
||||
// although there's never any harm in setting a mobile app access token.
|
||||
|
||||
doSetup();
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user