Skip to content

Commit 7daaa1a

Browse files
committed
Update authentication provider to latest authentication API
Signed-off-by: Denis Golovin [email protected]
1 parent 1d4230f commit 7daaa1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/authentication-service.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
2020
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121
*--------------------------------------------------------------------------------------------*/
22-
import { AuthenticationSession, window, EventEmitter, AuthenticationProviderSessionChangeEvent } from '@podman-desktop/api';
22+
import { AuthenticationSession, window, EventEmitter, AuthenticationProviderAuthenticationSessionsChangeEvent } from '@podman-desktop/api';
2323
import { ServerResponse } from 'node:http';
2424
import { Client, generators, Issuer, TokenSet } from 'openid-client';
2525
import { createServer, startServer } from './authentication-server';
@@ -60,7 +60,7 @@ interface IStoredSession {
6060
};
6161
}
6262

63-
export const onDidChangeSessions = new EventEmitter<AuthenticationProviderSessionChangeEvent>();
63+
export const onDidChangeSessions = new EventEmitter<AuthenticationProviderAuthenticationSessionsChangeEvent>();
6464

6565
export const REFRESH_NETWORK_FAILURE = 'Network failure';
6666

@@ -71,7 +71,7 @@ export interface RedHatAuthenticationSession extends AuthenticationSession{
7171
readonly scopes: ReadonlyArray<string>;
7272
account: {
7373
label: string;
74-
id?: string;
74+
id: string;
7575
};
7676
}
7777

0 commit comments

Comments
 (0)