Custom database login failure

Hi,

We have created a custom database and implement a login script that connects to our mongo database.

If i click “TRY” within the login script page it works fine.

However when I go to “Try connection” tab it fails with error:

{"error": "unauthorized", "error_description": "Access denied."}

When I debug the script using wt-cli I see:

Unhandled rejection APIError: {"statusCode":401,"error":"Unauthorized","message":"Expired token received for JSON Web Token validation","attributes":{"error":"Expired token received for JSON Web Token validation"}}

Can anyone throw some light what am I missing?

Thanks

:wave: @javier2 could you share your login script? are you calling any APIs from the login script? Please let me know if you were able to solve your issue.