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