-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bea1e92
commit db8e596
Showing
2 changed files
with
66 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Homebridge plugin for AEG RX 9 / Electrolux Pure i9 robot vacuum | ||
// Copyright © 2024 Alexander Thoukydides | ||
|
||
// Access token header (Base64 URL decoded) | ||
export interface AccessTokenHeader { | ||
kid: string; // Key ID (64 hexadecimal digits) | ||
alg: string; // Signing algorithm, e.g. 'RS256' | ||
typ: string; // Token type, e.g. 'JWT' | ||
} | ||
|
||
// Access token payload (Base64 URL decoded) | ||
export interface AccessTokenPayload { | ||
iat: number; // Issued At (seconds since epoch) | ||
iss: string; // Issuer, e.g. 'https://api.ocp.electrolux.one/one-account-authorization' | ||
aud: string; // Audience, e.g. 'https://api.ocp.electrolux.one' | ||
exp: number; // Expiration Time (seconds since epoch) | ||
sub: string; // Subject (32 hexadecimal digits) | ||
azp: string; // Authorised Party, e.g. 'HeiOpenApi' | ||
scope: string; // Authorised scopes, e.g. 'email offline_access' | ||
occ: string; // Country code, e.g. 'GB' | ||
} |