Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Email/Password storing the Access token #1476

Open
1 task done
Swiftgti opened this issue Jul 22, 2023 · 3 comments
Open
1 task done

Email/Password storing the Access token #1476

Swiftgti opened this issue Jul 22, 2023 · 3 comments

Comments

@Swiftgti
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

Use Email/Password for config the script but to be used only when Access token is expired, so always uses the Access token stored and only when it is expired the Access token the Email/Password is used, for creating a new Access token and store it in a file.
So this way every time that the script executes don't do a login only uses the Access token and only do the Email/Password authentication when really is needed.

Proposed workflow

1 Email/Password authentication stores Access token in a file
2 every time the scrips execute uses stored Access token
2 only authenticates with Email/Password when Access token is expired and renews the file

Additional information

No response

@MapleLCG
Copy link

in fact, it does work like that.

@Swiftgti
Copy link
Author

Good, genius. Let me ask. Where is stored the access token. ?

@MapleLCG
Copy link

Good, genius. Let me ask. Where is stored the access token. ?

dir named “revChatGPT” in userhome

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants