Add Media-Token beside access token
Media-Token can be used only to access the content, but unable to modify user data
This commit is contained in:
parent
0a71a6c840
commit
1f06c40c4c
31 changed files with 516 additions and 762 deletions
|
|
@ -24,6 +24,7 @@ def generate_session(user_id, byte_count = None, access_expires_in = None, refre
|
|||
return Session(
|
||||
user_id = user_id,
|
||||
access_token = token_urlsafe(byte_count),
|
||||
media_token = token_urlsafe(byte_count),
|
||||
refresh_token = token_urlsafe(byte_count),
|
||||
access_expires_at = access_expires_in + current_time,
|
||||
refresh_expires_at = refresh_expires_in + current_time,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue