webhook.site icon indicating copy to clipboard operation
webhook.site copied to clipboard

`expiry` is not available as a parameter for creating tokens through the API

Open edrichhans opened this issue 6 months ago • 1 comments

Hi! I love your project, and I was surprised to see this merged https://github.com/webhooksite/webhook.site/pull/164 when I was trying to set up helm. Hopefully this didn't add more problems to your repo.

I wanted to use the expiry feature in the POST /token endpoint, but it doesn't seem to be available in this open source version https://github.com/webhooksite/webhook.site/blob/ca6fcb9e2b8612e5a15872dae755459e36b6287e/app/Storage/Token.php#L24

However, the cloud version actually has it, and I can see the expiry and expires_at in the response.

May I know what setup you have for this open source version vs what is being hosted in https://webhook.site? I am happy to make a PR to set the expiry on a token-level, but if I can avoid duplicated work, that would be much nicer.

Thank you!

edrichhans avatar Aug 19 '24 03:08 edrichhans