#community-help

Decoding Scoped Search Key to Find Expiry Time

TLDR Gustavo asked how to decode a scoped search key. Kishore Nallan suggested base64 decoding it, which Gustavo confirmed worked.

Powered by Struct AI

1

4
3mo
Solved
Join the chat
Jun 14, 2023 (3 months ago)
Gustavo
Photo of md5-f930fdb99fd46477205fa1201164ea50
Gustavo
12:31 PM
Can I locally decode a scoped search key to know its expiry time, without a network request?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
12:45 PM
Yes base64 decode the scoped api key and you can see the contents. NOTE: this is fine because the key also contains a digest that's generated from the params & server side API key. This digest is regenerated and checked again in the backend to ensure that the key contents have not been tampered.
Gustavo
Photo of md5-f930fdb99fd46477205fa1201164ea50
Gustavo
12:50 PM
Will try
12:52
Gustavo
12:52 PM
Confirmed, thanks

1