mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: streamline console access update by simplifying fingerprint token handling
This commit is contained in:
@@ -110,11 +110,7 @@ export const load: LayoutLoad = async ({ params, depends, parent }) => {
|
||||
generateFingerprintToken()
|
||||
.then((fingerprint) => {
|
||||
sdk.forConsole.client.headers['X-Appwrite-Console-Fingerprint'] = fingerprint;
|
||||
return (
|
||||
sdk.forConsole.projects as unknown as {
|
||||
updateConsoleAccess(params: { projectId: string }): Promise<unknown>;
|
||||
}
|
||||
).updateConsoleAccess({
|
||||
sdk.forConsole.projects.updateConsoleAccess({
|
||||
projectId: params.project
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user