You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have found many difficulties related to the flet.auth providers in static websites.
On the first try I used the flet.auth.providers to get GitHubOAuthProvider. I was unable to find flet.auth but I have found a solution here: #1657
So I replaced flet.auth with flet_runtime.auth.github_oauth_provider import GitHubOAuthProvider. After that, I had a problem with the requests python lib, but the solution was simple, I just added requests==2.31.0 to the requirement.txt file.
After next flet build web run I have a new problem:
pyodide.asm.js:9 ModuleNotFoundError: The module 'ssl' is unvendored from the Python standard library in the Pyodide distribution.
pyodide.asm.js:9 You can install it by calling:
pyodide.asm.js:9 await micropip.install("ssl") in Python, or
pyodide.asm.js:9 await pyodide.loadPackage("ssl") in JavaScript
I checked all active/closed issues and I found a similar error here: #2421
The author recommended making his app as server-side (with fast API). The question is, is it possible to use any providers in the static website?
pyodide.asm.js:9 ModuleNotFoundError: The module 'ssl' is unvendored from the Python standard library in the Pyodide distribution.
pyodide.asm.js:9 You can install it by calling:
pyodide.asm.js:9 await micropip.install("ssl") in Python, or
pyodide.asm.js:9 await pyodide.loadPackage("ssl") in JavaScript
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I have found many difficulties related to the
flet.authproviders in static websites.On the first try I used the
flet.auth.providersto getGitHubOAuthProvider. I was unable to findflet.authbut I have found a solution here: #1657So I replaced
flet.authwithflet_runtime.auth.github_oauth_provider import GitHubOAuthProvider. After that, I had a problem with therequestspython lib, but the solution was simple, I just addedrequests==2.31.0to the requirement.txt file.After next
flet build webrun I have a new problem:I checked all active/closed issues and I found a similar error here: #2421
The author recommended making his app as server-side (with fast API). The question is, is it possible to use any providers in the static website?
I attached simple felt code below:
Code sample
Error message
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions