Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login Integration: uauth.user() fails due to missing username #100

Open
calebrosario opened this issue Mar 17, 2023 · 0 comments
Open

Login Integration: uauth.user() fails due to missing username #100

calebrosario opened this issue Mar 17, 2023 · 0 comments

Comments

@calebrosario
Copy link

@web3-react v6
@uauth/js v2.4.0

Login Integration
TLDR: username is set a an optional value but breaks when not set and attempting to get UserInfo

await activate(uauth);
do the redirect, approve and sign via metamask
user is redirected to correct authorize route
in this route we run uauth.user()

async user(options: UserOptions = {}): Promise<UserInfo> {

to then call authorization()

async authorization(

Here we see that the interface AuthorizationOptions username as optional

export interface AuthorizationOptions {

but here we see that username is verified as a required field using the _getUsername to verify one exist.

username: await this._getUsername(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant