mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-05 18:20:39 -08:00
fix: A dynamic import callback was not specified.
This commit is contained in:
parent
38f82621b1
commit
4b952487f7
2 changed files with 2 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ Feature: OAuth Login Flow
|
||||||
And I wait for the page to load completely
|
And I wait for the page to load completely
|
||||||
And I should see a "page body" element with selector "body"
|
And I should see a "page body" element with selector "body"
|
||||||
|
|
||||||
@oauth @pkce
|
@oauth
|
||||||
Scenario: Login with Custom OAuth Server using PKCE
|
Scenario: Login with Custom OAuth Server using PKCE
|
||||||
# Step 1: Start Mock OAuth Server
|
# Step 1: Start Mock OAuth Server
|
||||||
When I start Mock OAuth Server on port 8888
|
When I start Mock OAuth Server on port 8888
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import serviceIdentifier from '@services/serviceIdentifier';
|
||||||
import { SupportedStorageServices } from '@services/types';
|
import { SupportedStorageServices } from '@services/types';
|
||||||
import type { IWorkspace } from '@services/workspaces/interface';
|
import type { IWorkspace } from '@services/workspaces/interface';
|
||||||
import { isWikiWorkspace } from '@services/workspaces/interface';
|
import { isWikiWorkspace } from '@services/workspaces/interface';
|
||||||
import { BrowserWindow } from 'electron';
|
import { BrowserWindow, session } from 'electron';
|
||||||
import { injectable } from 'inversify';
|
import { injectable } from 'inversify';
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { BehaviorSubject } from 'rxjs';
|
import { BehaviorSubject } from 'rxjs';
|
||||||
|
|
@ -123,7 +123,6 @@ export class Authentication implements IAuthenticationService {
|
||||||
* Used during logout to clear "remember me" state
|
* Used during logout to clear "remember me" state
|
||||||
*/
|
*/
|
||||||
public async clearCookiesForDomain(domain: string): Promise<void> {
|
public async clearCookiesForDomain(domain: string): Promise<void> {
|
||||||
const { session } = await import('electron');
|
|
||||||
try {
|
try {
|
||||||
const cookies = await session.defaultSession.cookies.get({ domain });
|
const cookies = await session.defaultSession.cookies.get({ domain });
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue