Example #1
0
 def local_auth_token(self):
     return generate_token(LOCAL_AUTH_TOKEN_LENGTH)
Example #2
0
 def access_token(self):
     return generate_token(ACCESS_TOKEN_LENGTH, prefix="ya29.")
Example #3
0
 def master_token(self):
     return generate_token(MASTER_TOKEN_LENGTH, prefix="aas_et/")
Example #4
0
 def local_auth_token(self) -> str:
     """Generates random local_auth_token token"""
     return generate_token(LOCAL_AUTH_TOKEN_LENGTH)
Example #5
0
 def access_token(self) -> str:
     """Generates random access token"""
     return generate_token(ACCESS_TOKEN_LENGTH, prefix="ya29.")
Example #6
0
 def master_token(self) -> str:
     """Generates random master token"""
     return generate_token(MASTER_TOKEN_LENGTH, prefix="aas_et/")