Requirement for temporary token based page authentication

I am looking for a solution to implement a sharable web page in frappe, that has a token based authentication & a custom token expiry time can be preset before hand.

Has anyone got any pointers to such a solution how we can implement in Frappe?

Thanks!

https://frappeframework.com/docs/user/en/guides/integration/rest_api/simple_authentication

I found this useful