From c6e135f2b234c548efbbe346ebd29e4c083800e9 Mon Sep 17 00:00:00 2001 From: Scoder12 <34356756+Scoder12@users.noreply.github.com> Date: Tue, 28 Jul 2020 11:20:21 -0700 Subject: [PATCH] Fix typo in example module name --- 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()