Skip to content

Commit

Permalink
Update types to reflect reality of user profiles (#3576)
Browse files Browse the repository at this point in the history
* Update types to reflect reality of user profiles

* Updated changelog
  • Loading branch information
kraenhansen committed Feb 11, 2021
1 parent d333b29 commit 7193abc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/realm-web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
### Fixed
* Fixed app hydration to be more robust: Errors are now logged instead of thrown. ([#3549](https://github.com/realm/realm-js/pull/3549))
* Fixed a potential lock, when refreshing an access token or fetching custom user data, failed due to 401/unauthorized. An unauthorized response, during token-refresh, will now clear all the users' tokens. ([#3549](https://github.com/realm/realm-js/pull/3549))
* Fixed user profile type, making less assumptions on the value type of custom profile data (changing from string to unknown). ([#3576](https://github.com/realm/realm-js/pull/3576), since 1.2.0)

### Internal
* None
Expand Down
4 changes: 2 additions & 2 deletions types/app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -609,9 +609,9 @@ declare namespace Realm {
maxAge?: string;
} & {
/**
* Authentication providers might store other data here.
* Authentication providers might store additional data here.
*/
[key: string]: string;
[key: string]: unknown;
};

/**
Expand Down

0 comments on commit 7193abc

Please sign in to comment.