Skip to content
This repository has been archived by the owner on May 21, 2023. It is now read-only.

Commit

Permalink
chore: version update 0.1.2 and bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroday0619 committed Sep 14, 2022
1 parent 831833c commit 27ad1ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nso_bridge/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

__version__ = '0.1.1'
__version__ = '0.1.2'

from nso_bridge.nsa import NintendoSwitchAccount
from nso_bridge.nso import NintendoSwitchOnlineAPI
Expand Down
3 changes: 1 addition & 2 deletions nso_bridge/nso.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __init__(self, nso_app_version: str, user_info: dict, user_lang: str, access
self.body = {
'parameter': {
'f': self.flapg['f'],
'naIdToken': self.access_token,
'naIdToken': self.id_token,
'timestamp': self.flapg['timestamp'],
'requestId': self.flapg['uuid'],
'naCountry': self.user_info['country'],
Expand Down Expand Up @@ -147,7 +147,6 @@ def sync_login(self):

if wasc_time is None:
wasc_time = 0.0

if wasc_access_token is not None:
self.login = pickle.loads(base64.b64decode(wasc_access_token.encode('utf-8')))
self.headers['Authorization'] = f"Bearer {self.login['login'].account['result']['webApiServerCredential']['accessToken']}"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def test_nso_login():
app = NintendoSwitchAccount()

# override the nso_app_version
app.nso_app_version = '2.1.1'
app.nso_app_version = app.get_nso_app_version()
session_token = keyring.get_password("nso-bridge", "session_token")

nso_res = NintendoSwitchOnlineAPI(
Expand Down

0 comments on commit 27ad1ca

Please sign in to comment.