-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: Return Social User information #21
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check out some of the comments.
@@ -124,6 +124,7 @@ export class GnoSocialWalletProvider extends GnoWalletProvider { | |||
const openloginAdapter = new OpenloginAdapter({ | |||
privateKeyProvider: privateKeyProvider, | |||
adapterSettings: { | |||
storageKey: 'session', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to get the settings from the user.
@@ -243,4 +246,12 @@ export class GnoSocialWalletProvider extends GnoWalletProvider { | |||
web3auth.configureAdapter(openloginAdapter); | |||
return new GnoSocialWalletProvider(web3auth, socialType, [networkConfig]); | |||
} | |||
|
|||
public async getSocialUserProfile(): Promise<Partial<UserInfo>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more things
-
override the
UserInfo
type. -
add a function to the
TM2Wallet
interface. -
make it possible to call the same function from
adena-sdk
.
- We need some guard logic to check if it is an instance of
GnoSocialWallet
.
What type of PR is this?
What this PR does: