Commit f1f874

2024-11-03 16:11:41 Hargata Softworks: x
advanced/kiosk.md ..
@@ 38,4 38,16 @@
## Setting Access Token
- If your use-case for the Kiosk involves a full-time display(e.g.: a
+ If your use-case for the Kiosk involves a full-time display, you will need to set up an access token as the user session cookie set by LubeLogger expires in either 24 hours or 7 days(depending if `Remember Me` was selected during Login). Setting up an access token allows the kiosk to continue functioning even if the user session has long expired.
+
+ 1. Ensure that your user's password does not contain `:` in it
+ 2. Encode `{yourusername}:{yourpassword}` in Base64
+ 3. You will need to login at least once before navigating to your Kiosk URL
+ 4. Open up the developer's console(F12 on most browsers)
+ 5. Some browsers will require you to acknowledge what you're doing.
+ 6. Type in `setAccessToken('{Base64 Encoded token generated in step 2}')`
+ 7. Hit enter and you should get a response stating the access token was set.
+
+ E.g.: If the username is `test` and the password is `1234` the base64 encoded token would be `dGVzdDoxMjM0` You would then type in `setAccessToken('dGVzdDoxMjM0')` in the developer's console.
+
+ Test this by navigating to your LubeLogger instance in a different tab and logging out. Your kiosk dashboard should continue functioning.
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9