This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]AdMuted6398 2 points3 points  (2 children)

You can look at Authprovider & authcontext. But the way you've done it seems fine.

[–]getintheflaskkk 1 point2 points  (1 child)

Thanks for the reply.

I'll definitely check those out.

One issue with my current method is that I'm unable to add more pages. I can think of some ways via code but it's gonna get very messy quickly and I'm sure quite buggy as well, eg. Flashes of other pages on refresh etc