-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: more circular dependencies removed from auth package
- Loading branch information
Showing
7 changed files
with
405 additions
and
238 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** | ||
* Returned from the [[UserSession.loadUserData]] function. | ||
*/ | ||
export interface UserData { | ||
// public: the blockstack ID (for example: stackerson.id or alice.blockstack.id) | ||
username: string; | ||
// public: the email address for the user. only available if the `email` | ||
// scope is requested, and if the user has entered a valid email into | ||
// their profile. | ||
// | ||
// **Note**: Blockstack does not require email validation | ||
// for users for privacy reasons and blah blah (something like this, idk) | ||
email?: string; | ||
// probably public: (a quick description of what this is, and a link to the | ||
// DID foundation and/or the blockstack docs related to DID, idk) | ||
decentralizedID: string; | ||
// probably private: looks like it happens to be the btc address but idk | ||
// the value of establishing this as a supported field | ||
identityAddress: string; | ||
// probably public: this is an advanced feature, I think many app devs | ||
// using our more advanced encryption functions (as opposed to putFile/getFile), | ||
// are probably using this. seems useful to explain. | ||
appPrivateKey: string; | ||
// maybe public: possibly useful for advanced devs / webapps. I see an opportunity | ||
// to make a small plug about "user owned data" here, idk. | ||
hubUrl: string; | ||
coreNode: string; | ||
// maybe private: this would be an advanced field for app devs to use. | ||
authResponseToken: string; | ||
// private: does not get sent to webapp at all. | ||
coreSessionToken?: string; | ||
// private: does not get sent to webapp at all. | ||
gaiaAssociationToken?: string; | ||
// public: this is the proper `Person` schema json for the user. | ||
// This is the data that gets used when the `new blockstack.Person(profile)` class is used. | ||
profile: any; | ||
// private: does not get sent to webapp at all. | ||
gaiaHubConfig?: any; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters