Skip to content

弹出的Web页面怎么才可以有【二维码扫码登录】的选项 #63

@bliu8710

Description

@bliu8710

我的这个登录页面正常打开了。如图。

只有手机验证码,以及账号密码登录可选。

我想问这个web页面怎么才可以有【二维码扫码登录】的选项

image

我的代码截取如下,按下Button调用authorize

Button("Authorize") {
                    Task {
                        do {
                            let userInfo = try await client.authorize(credentials: .pkce)
                                .send(AliyunpanScope.User.GetUsersInfo())
                            self.userInfo = userInfo
                        } catch {
                            print("Authorize ERR: ", error)
                        }
                    }
                }
                .font(.largeTitle)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions