mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-01 09:30:01 +08:00
fix(core): selfhosted auth handling (#15295)
fix #15284 fix #15266 fix #15268 fix #15267 #### PR Dependency Tree * **PR #15295** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal)
This commit is contained in:
@@ -5,8 +5,7 @@ query getCurrentUser {
|
||||
email
|
||||
emailVerified
|
||||
avatarUrl
|
||||
token {
|
||||
sessionToken
|
||||
}
|
||||
hasPassword
|
||||
features
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1967,12 +1967,10 @@ export const getCurrentUserQuery = {
|
||||
email
|
||||
emailVerified
|
||||
avatarUrl
|
||||
token {
|
||||
sessionToken
|
||||
}
|
||||
hasPassword
|
||||
features
|
||||
}
|
||||
}`,
|
||||
deprecations: ["'token' is deprecated: use auth session exchange instead"],
|
||||
};
|
||||
|
||||
export const getDocCreatedByUpdatedByListQuery = {
|
||||
|
||||
@@ -6519,7 +6519,8 @@ export type GetCurrentUserQuery = {
|
||||
email: string;
|
||||
emailVerified: boolean;
|
||||
avatarUrl: string | null;
|
||||
token: { __typename?: 'tokenType'; sessionToken: string | null };
|
||||
hasPassword: boolean | null;
|
||||
features: Array<FeatureType>;
|
||||
} | null;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user