Temporary Security Credentials for Public Api

I got a asp.net core web api, this api would be used by multiple applications, and those applications (e.g. angular 7/8 apps) would allow public access. In order to secure the api, I would like to implement Temporary Security Credentials when the public users access the application. It means when the user access the application the temporary JWT token (which would be expired in 60 mins) would be generated.

Extra Thing: The application can also generate refresh token based on the the temporary JWT token, and this refresh token would be expired in 14 days.

Does anyone know how to generate this temp token and refresh token in Auth0?