Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

URL Token

Featured Replies

Hi,

    just looking for advice, when a user registers I would like them to have a URL token assigned to them, not a problem with that,  what I would like to know is the best practice for allowing them access to part of the website that generates an HTML to PDF, the user, from their site uses Curl with the URL token and the URL that they would like converting to HTML.

What I would like to know is the following

  • it best to store a session against that user in a database table?
  • how long should I allow the token to be active for 3 months 6 months?
  • do I need to give them a refresh token?

or am I over complicating things?

thanks

I would say yes to store a session against a user and you should also store where the requests came from. This data is great to work out usage and also helpful to detect abnormal behaviour. As to the token length of time or if to refresh, i'm guessing this is some sort of api connecting from their end so the token validates the request, if so then there's no point in changing it.

  • 2 weeks later...
  • Author

 

Thanks, i have just set it up, put the token in the header as a  bearer token, if you want a token key for free let me know, it does HTML to PDF, screenshots to PDF, XML site map and few other ideas i am working on

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.