我正在尝试将用户 ID 令牌存储在如下变量中:
token = user[‘idToken’]
在用户使用电子邮件和密码登录后,我正在执行此操作。当我打印它给出的用户变量时
{'kind': 'identitytoolkit#VerifyPasswordResponse', 'localId': 'cSZHkRIzGPWfuMmaZ93STFVvdr43', 'email': '1@1.com', 'displayName': '', 'idToken': 'eyJhbGciOiJSUzI1NiIsImtpZCI6IjEyODA5ZGQyMzlkMjRiZDM3OWMwYWQxOTFmOGIwZWRjZGI5ZDM5MTQiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL3NlY3VyZXRva2VuLmdvb2dsZS5jb20vc2Nob29sLXN1YmplY3QtZjdjZDQiLCJhdWQiOiJzY2hvb2wtc3ViamVjdC1mN2NkNCIsImF1dGhfdGltZSI6MTU5ODAzNzUxMiwidXNlcl9pZCI6ImNTWkhrUkl6R1BXZnVNbWFaOTNTVEZWdmRyNDMiLCJzdWIiOiJjU1pIa1JJekdQV2Z1TW1hWjkzU1RGVnZkcjQzIiwiaWF0IjoxNTk4MDM3NTEyLCJleHAiOjE1OTgwNDExMTIsImVtYWlsIjoiMUAxLmNvbSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiZmlyZWJhc2UiOnsiaWRlbnRpdGllcyI6eyJlbWFpbCI6WyIxQDEuY29tIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.rZf3AYwhk7wvprE0c-VECBZ8vZyQ5LvwLNYECSWmaHDYNEFSGMRTDe_UD_cd28CyLlSKt-jNrnSUUI570E2LrLWUBf1Z5MdVAg5wExwDmM_AJqkQq8icqu1RXSYNar85i75oMfOEccQn6x8-UcXMtaVZhBCEFhN6mE6ZeW8CufFlu5kdf63Dw8GbyiNon9YVFwVjap7sEWcEfy3r4KJ8SscUarwuOtwJgybQcUpkgqRuPNTBhu6hcF7exDqIVC9mQzPtjQgWBsYAS1Ll8kkJaLJW9lYCd8__ybMgG-WJ7u_0_Q9t0zYVzzbk-7PFbttQC_QaNuMfzuGIKcypQ2eVMw', 'registered': True, 'refreshToken': 'AE0u-Nf0xpXPRjHUrIwCFOeSqVG709oIP5Yfjab7MRy8Eckk4Nx7jUGJGRHlMphFdVlKPwwK6_mE9ynAp-CnlVwM58dNHnAiD_4nzL7VgK-XX4vTBVbnAhNK-3r1T_sBfZEdbpV7a2UoNyE_4Kdi4CuRMWi96M96Xiv0VFH6ldy2mHJcSDd8p1MUVwV7eXOH2J195_4R8YiChqfKo5bQpfVuEZW9ICM36w', 'expiresIn': '3600'}
当我的代码运行时,它会在标题中给出错误
我将如何解决这个问题?