metakgp / iitkgp-erp-login-pypi

The only python package you will ever need to implement login process in ERP for IIT-KGP
https://pypi.org/project/iitkgp-erp-login/
GNU Affero General Public License v3.0
26 stars 7 forks source link

token alive function written #9

Closed veryshyjelly closed 1 year ago

veryshyjelly commented 1 year ago

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Test Configuration:

Checklist:

veryshyjelly commented 1 year ago

Why itni mehnat?

konsi mehnat? description to automatic aaya tha

proffapt commented 1 year ago

Why itni mehnat?

konsi mehnat? description to automatic aaya tha

I meant what's the benefit of finding the path inside the cookie..

content-type seems to me the best method to distinguish.

veryshyjelly commented 1 year ago

okay

veryshyjelly commented 1 year ago

it's more logical tho

proffapt commented 1 year ago

There are actually 3 cases for some reason..

image

And this is the only thing which exist in all of them and distinguishes the 1 from the other two

One case which you might have not checked is jab pehli baar login hota try printing the headers.. for some reason it is a bit different from the login when you directly use the token.

veryshyjelly commented 1 year ago

Sir my code will work

proffapt commented 1 year ago

Sir my code will work

so will this one :looksaway: