Asking about a feature in o2

Hello everyone, I’d really need some help.

This is a code that kinda shows what I’m doing but it’s incomplete.

The login request is simple and since I’m applying it on my own granted website the response source will be always success with my own email giving the necessary cookies for the next blocks.

Now what i want is after the login to validate the database of emails i have without redoing the login. Is there a way to make ob2 run the login once ( to get the cookies ) and then run only the verify email block checking if emails exist or no and when the cookies Session get expired it goes to the login to get new cookies and doing the same?

Waiting for your help master @Ruri :eyes:
Thanks

BLOCK:HttpRequest

LABEL:Login
  url = "https://reqbin.com/echo/post/json"
  method = POST
  TYPE:STANDARD
  $"[email protected]"
  "application/token"
ENDBLOCK
IF STRINGKEY @data.SOURCE Contains "success"
BLOCK:HttpRequest
LABEL:Verify Email
  url = "https://reqbin.com/echo/post/json"
  method = POST
  TYPE:STANDARD
  $"email=<input.USERNAME>"
  "application/json"
ENDBLOCK

BLOCK:Keycheck
LABEL:supposed Keywords
  KEYCHAIN SUCCESS OR
    STRINGKEY @data.SOURCE Contains "Email Exists"
  KEYCHAIN FAIL OR
    STRINGKEY @data.SOURCE Contains "Email Doesn't exist"
  KEYCHAIN RETRY OR
    STRINGKEY @data.SOURCE Contains "Cookies Session Expired"
ENDBLOCK
END

Well it’s not only one token tbh it’s a combination of cookies and tbh your explanation is not helping at all from my perspective​:rofl::rofl::rofl:

Can you help applying it to the code i shared at least? Thank you

The logic is the same, just use a dictionary instead of a string as the token