From fa5fff8156f945db33c32841b9d93af2d07c2866 Mon Sep 17 00:00:00 2001 From: Scoder12 <34356756+Scoder12@users.noreply.github.com> Date: Tue, 28 Jul 2020 11:23:30 -0700 Subject: [PATCH] Recreate out of sync file --- examples/maqpy/manual_auth.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 examples/maqpy/manual_auth.py diff --git a/examples/maqpy/manual_auth.py b/examples/maqpy/manual_auth.py new file mode 100644 index 0000000..0721672 --- /dev/null +++ b/examples/maqpy/manual_auth.py @@ -0,0 +1,16 @@ +"""A basic example of repl auth.""" +from replit import maqpy + +app = maqpy.App("app") + + +@app.route("/") +def index(): + if maqpy.signed_in: + return "Hello " + maqpy.auth.name + else: + return maqpy.signin() # optionally: simple.sigin(title="My title") + + +if __name__ == "__main__": + app.run()