connector/login: return browser login method as the first one
clients will prefer it
This commit is contained in:
@@ -27,16 +27,16 @@ const LoginStepIDComplete = "fi.mau.discord.login.complete"
|
|||||||
|
|
||||||
func (d *DiscordConnector) GetLoginFlows() []bridgev2.LoginFlow {
|
func (d *DiscordConnector) GetLoginFlows() []bridgev2.LoginFlow {
|
||||||
return []bridgev2.LoginFlow{
|
return []bridgev2.LoginFlow{
|
||||||
{
|
|
||||||
ID: LoginFlowIDRemoteAuth,
|
|
||||||
Name: "QR Code",
|
|
||||||
Description: "Scan a QR code with the Discord mobile app to log in.",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
ID: LoginFlowIDBrowser,
|
ID: LoginFlowIDBrowser,
|
||||||
Name: "Browser",
|
Name: "Browser",
|
||||||
Description: "Log in to your Discord account in a web browser.",
|
Description: "Log in to your Discord account in a web browser.",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
ID: LoginFlowIDRemoteAuth,
|
||||||
|
Name: "QR Code",
|
||||||
|
Description: "Scan a QR code with the Discord mobile app to log in.",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
ID: LoginFlowIDToken,
|
ID: LoginFlowIDToken,
|
||||||
Name: "Token",
|
Name: "Token",
|
||||||
|
|||||||
Reference in New Issue
Block a user