We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 582cf8f commit dacce82Copy full SHA for dacce82
src/api/transportTypes.js
@@ -17,6 +17,13 @@
17
*/
18
export type Auth = $ReadOnly<{|
19
realm: URL,
20
+
21
+ /** The API key, or the empty string if the user has logged out. */
22
+ // TODO: Instead of the empty string, use null, to get more helpful
23
+ // feedback from Flow. We can't express to Flow the type whose values
24
+ // are all strings except the empty string. When making this change, be
25
+ // sure to write a migration, and carefully track down all checks
26
+ // against the empty string and convert them to checks against null.
27
apiKey: string,
28
29
// TODO: Follow changes in the user's email address, whether while we're
0 commit comments