How to get user image
I'm making a project in django, and i'm using replit auth. when authed i want to display the user picture to the client but I can't figure out how to. is there a HTTP header for the user picture or do I just have to scrape it off the replit page (I really don't want to do some scraping)
You can request to
https://replit.com/data/profiles/<user> and parse the JSON returned, then get
There currently doesn't seem to be a header to get the user picture. I read in one of the comment sections that
os.getenv("REPL_IMAGE") gives the URL. Here's the link to the thread: https://replit.com/talk/learn/Authenticating-users-with-Replit-Auth/23460 . Hope this helps!