Share your repls and programming experiences

← Back to all posts
The Unofficial Replit Auth Flask Extension
EpicCodeWizard

The Unofficial Replit Auth Flask Extension

Replit authentication is an amazing thing. This package provides an easy way to use it.

Installation: pip install flask-replit-auth
PyPI Link: https://pypi.org/project/flask-replit-auth/

Imports:
from flask import request
from flask_replit_auth import replit_auth

Initialize replit auth on your app by calling replit_auth(app) after creating your flask app.
To get information, call request.user, which will either return None or a dict with the information.

Replit Auth - Frontend

Usage:
1. Apply the javascript code above to your website (code from https://auth.turbio.repl.co/script.js).
2. Set the id of you login button to login_with_replit.

Please updoot and share!

KTHXBYE!!!

Voters
SaharshM
SarveshMadullap
EpicCodeWizard