Skip to content

Latest commit

 

History

History
executable file
·
99 lines (69 loc) · 2.1 KB

garbage.md

File metadata and controls

executable file
·
99 lines (69 loc) · 2.1 KB

garbage.md

API Endpoints

Deactivate extension

Register -> Post

Login -> Post

  • Input { "email":"[email protected]", "password":"xhq8mxhq8m" } Result <- { "refresh": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.", "access": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9." }

realuser2: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzIwNTE3NTI3LCJpYXQiOjE3MTE5NjM5MjcsImp0aSI6IjFjZGY5ZDk3ZDY3YzQxODc4MmVmNTgyZDg3MmM5M2Q2IiwidXNlcl9pZCI6MSwiZW1haWwiOiJzaW91ZGF6ZXI4MkBnbWFpbC5jb20iLCJ1c2VybmFtZSI6InJlYWx1c2VyMiJ9.06R3e43s9VhLW3DgC7MgaoblXidZQ6Kd4ojrDEt26MY

azer:

Put new access token to the extension

Logout -> Post

Must contain "Authorization: JWT your_token" in the header

  • No input

Profile -> Get

Must contain "Authorization: JWT your_token" in the header

  • No input

Users -> Get

Must contain "Authorization: JWT your_token" in the header

  • No Input

activateTwoFa -> Post

Must contain "Authorization: JWT your_token" in the header

  • No Input

deactivateTwoFa -> Post

Must contain "Authorization: JWT your_token" in the header

  • No Input

sendQrCode -> Post

Must contain "Authorization: JWT your_token" in the header

  • No Input, Check your email ;

TwoFactorAuth -> Post

Must contain "Authorization: JWT your_token" in the header

  • Input: {"otp_code":"your_otp_code"}

UpdateProfile -> Post

Must contain "Authorization: JWT your_token" in the header

  • Input: {"anyProfileField":"New Value"} e.g {"AboutMe":"New About Me"}

Tools

Header Changer: https://chromewebstore.google.com/detail/requestly-open-source-htt/mdnleldcmiljblolnjhpnblkcekpdkpa

TODO

MAKE A MORE SECURE WAY TO SAVE PWD, ALSO TO CHANGE IT

  • check if the token is valid
  • check if the token is expired

Jamshidbek

/block/

{ "blocked_username":"realuser" }

/unblock/

{ "blocked_username":"realuser" }

Notes

Paddle speed increases with ball speed

  • start only when starg game pressed
  • Prevent user from playing again itself
  • Ending