ReplAuth isn't working

Question:
I have a Flask website that uses ReplAuth using replit.web, and it does not force me to authenticate when I open the site. Why is this?
Repl link:
replit.com/@element1010/Elemental-Conquest
elemental-conquest.element1010.repl.co

@web.authenticated(login_res=loginPage)
@app.route('/')
def index():
   ...
1 Like

Is it possible that you may have already authenticated? Try clearing cookies/cache and try again. It might be the case that an existing authentication already exists, which means you don’t have to authenticate again.

No that is not the case, because if it was, it would show the information about the authenticated session.

1 Like

replit.web might be broken then, you can just manually add the JS script it’s not hard.

1 Like

@element1010 Put the auth decorater below the app route decorator. I realised this when coding my own repl.
Hope this helps!

1 Like
1 Like