How can I create my onw page authenticated

Hello comunity.
I’m creating a complete solution/flow to signin, signup, signout, recover pass, change pass. I decided use RESP api because this way I have more control under process.
I see Appygyver have a configuration that control access to pages authenticaded ou not.
“Allow page to be opened without authentication”
Well, when I complete login, I receve dada like user, token, etc. I’m storage in client-side-storage.
Now I’m would sure that the pages internal going to acesse if user if athenticateted.
I can create a app variables named auth and set as true, and control it.

my question is: Is there other prof way?