[Enhancement] Tokens generator built in preferences. #18

Closed
opened 2024-10-15 14:44:08 -03:00 by Fijxu · 4 comments
Owner
No description provided.

is this a one time thing, or do tokens expire with the passing of time (apart from the case when they are revoked by YT when used by multiple ppl) ??

also, privacy wise, is it the same if a token is generated via bookmark vs. button in settings?

is this a one time thing, or do tokens expire with the passing of time (apart from the case when they are revoked by YT when used by multiple ppl) ?? also, privacy wise, is it the same if a token is generated via bookmark vs. button in settings?
Author
Owner

I don't know how long it takes them to expire so idk.
Privacy wise, this is better than the bookmark since you will not touch the google servers an JS at all.

I don't know how long it takes them to expire so idk. Privacy wise, this is better than the bookmark since you will not touch the google servers an JS at all.

I see, one more if you don't mind.
is generation of tokens always and fully unique per user? like, can it happen that the same token is generated twice (in some time) for two different ppl separated by half of the planet?

I see, one more if you don't mind. is generation of tokens always and fully unique per user? like, can it happen that the same token is generated twice (in some time) for two different ppl separated by half of the planet?
Author
Owner

is generation of tokens always and fully unique per user? like, can it happen that the same token is generated twice (in some time) for two different ppl separated by half of the planet?

Yes, they are unique and generated per user, there is absolutely no way 2 users get the same token.
If two users generate a token for their account in the exact same time, there will be no collision.

I still don't know how to it for people without accounts tho. Why? Because there is no way to identify them so I can't use anything to prevent collisions. With registered users, I just use their username to prevent collisions on the generation of the tokens.

> is generation of tokens always and fully unique per user? like, can it happen that the same token is generated twice (in some time) for two different ppl separated by half of the planet? Yes, they are unique and generated per user, there is absolutely no way 2 users get the same token. If two users generate a token for their account in the exact same time, there will be no collision. I still don't know how to it for people without accounts tho. Why? Because there is no way to identify them so I can't use anything to prevent collisions. With registered users, I just use their username to prevent collisions on the generation of the tokens.
Fijxu closed this issue 2024-12-14 20:19:10 -03:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Fijxu/invidious#18
No description provided.