in fxa/core.py [0:0]
def __init__(self, client, email, stretchpwd, uid, token,
key_fetch_token=None, verified=False, verificationMethod=None,
auth_timestamp=0):
self.client = client
self.email = email
self.uid = uid
self.token = token
self.verified = verified
self.verificationMethod = verificationMethod
self.auth_timestamp = auth_timestamp
self.keys = None
self._auth = HawkTokenAuth(token, "sessionToken", self.apiclient)
self._key_fetch_token = key_fetch_token
# Quick validation on stretchpwd
if not isinstance(stretchpwd, StretchedPassword) and not isinstance(stretchpwd, bytes):
raise ValueError("stretchpwd must be a bytes or a StretchedPassword instance, " +
f"but was {stretchpwd}")
self.stretchpwd = stretchpwd