netless-io / flat

Project flat is the Web, Windows and macOS client of Agora Flat open source classroom.
https://flat.whiteboard.agora.io
MIT License
5.68k stars 815 forks source link

How can I create an account using a Google email when that part is missing from your frontend? #2145

Closed zerohct closed 4 months ago

zerohct commented 4 months ago

i see your code have user_google, user_apple, ...
image Why does it disappear in the frontend? image Where can I edit it to be able to create an account using a Google email? Thanks.

hyrious commented 4 months ago

The login methods is configured at https://github.com/netless-io/flat/blob/main/config/SG/.env.production named LOGIN_METHODS. Only the SG version has google account login method. You can change the config to enable it.

zerohct commented 4 months ago

Is there a way to log in without using OAuth authentication?

hyrious commented 4 months ago

Flat does have phone-password and email-password methods to login to the account. They do not require OAuth. However the CN version of Flat requires the phone number to be registered due to the law of the country.

zerohct commented 4 months ago

thanks