self.apiToken = res[“token”]
I don’t have a way to test this and am trying to build some exception handling for token problems.
- I can get the token expiration timestamp like this:
But, if it has expired, will the token be null/empty/None?
If the token in None, I won’t know if it has expired or if its missing due to some other problem. Any recommendations on the workflow for checking on this?
Do secrets have a lifetime/expiration? I didn’t see that documented.
In the docs “CREATE / SHOW / DROP / REFRESH TOKEN (deprecated)”
Note: this link is for GSQL, but i’m asking in the context of REST++, i didn’t see docs on that for rest.
There is no command “Refresh Token” documented. How do we refresh the token, drop and create? If the token is expired and I try to drop and/or create a token, I won’t have a token to pass in the REST++ call and will get the error: “Invalid parameters, token is required for refresh or drop token.” Now I’m stuck.