https://linen.dev logo
Redirect URL Validity for OAuth2-Based connection
# 🖥│support-forum
b
Hey @udaysidagana ! I’ve initiated a connection using an OAuth2-based AuthConfig, and the status is correctly set to
INITIATED
. When fetching the connected account details, I receive the
status
,
redirect_url
, and other information. However, I’ve noticed that the
redirect_url
generated by Composio eventually starts returning a 404 error after some timie , like:
Copy code
{"error":{"message":"URL not found","code":10404,"status":404","suggested_fix":""}}
I’m trying to understand how long these redirect URLs remain valid. If there’s an expiration duration, I can compare it with the
created_at
timestamp and handle this gracefully in my logic. Could you clarify the expiration policy for these URLs? @User
@abhishekpatil4
a
The redirectUrl generated via
.link()
is valid for 10mins & the other shortened redirectUrls are valid for ~1hr. Would recommend using 10mins as the expiry time.
b
We are initiating connection using the auth_link feature and we use pooling for getting the connection status and provide a helpful redirection if in case the user has left the auth in between. Does this method also use the expire time as 10 mins ? @abhishekpatil4
a
Yes