Files
marketplaces/files/changes.txt

25 lines
1.1 KiB
Plaintext
Raw Normal View History

2026-06-01 00:47:26 +04:00
bro please read carefully.
this must be for all projects.
At first here is the API for only auth process:
https://users.vitanova.network:456/ping
2026-05-19 02:01:36 +04:00
2026-06-01 00:47:26 +04:00
and here are other stuff regarding it:
//Logout user by sessionID
r.DELETE("/users/sessions/:webSessionID", Logout)
2026-05-19 02:01:36 +04:00
2026-06-01 00:47:26 +04:00
//creates new session for user and send code for activation
r.POST("/users/sessions", newWebSession)
r.GET("/users/sessions/:webSessionID", getWebSession)
As you got all the info, keep all the structure of api above.
Now when the user clicks on login, we must show the QR and the link of the telegram bot, which we already have (btw sho me, so i see wheter it is true or not)
and add a query param "?start=GUID" and generate a guid there.
after we post it ad a websession, we have to get it like this " r.GET("/users/sessions/:webSessionID", getWebSession)" every 5 secs untill we get a status true
if we will be loged in, we have to keep that webSessionID in the cookies for an hour
1. if we open our website, we have to check the cookies and do a request for that websession
2. if we are not loged in, then we will loge in one more time
any questions?