Post History
#1: Initial revision
When you say front-end code, do you mean views or JavaScript? The answer is different. **Views** are the client-side code, but are generated server-side so you have access to things like `user_signed_in?` and `current_user`. **JavaScript** has the QPixel JS API that you can use: ```js const user = await QPixel.user(); if (!!user.error) { // not signed in or some error - handle it here, // else use the user object for whatever you need } ```