-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(NODE-5464): renaming workflows
- Loading branch information
Showing
8 changed files
with
43 additions
and
17 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
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
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
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,26 @@ | ||
import { type IdPServerInfo, type IdPServerResponse } from '../mongodb_oidc'; | ||
|
||
const kGeneration = Symbol('generation'); | ||
const kIdpInfo = Symbol('idpInfo'); | ||
const kIdpResponse = Symbol('idpResponse'); | ||
|
||
/** @internal */ | ||
export class TokenManager { | ||
[kGeneration] = 0; | ||
[kIdpInfo]: IdPServerInfo; | ||
[kIdpResponse]: IdPServerResponse; | ||
|
||
constructor(idpInfo: IdPServerInfo, idpResponse: IdPServerResponse) { | ||
this[kIdpInfo] = idpInfo; | ||
this[kIdpResponse] = idpResponse; | ||
} | ||
|
||
set idpInfo(value: IdPServerInfo) { | ||
this[kIdpInfo] = value; | ||
this[kGeneration] += 1; | ||
} | ||
|
||
get idpInfo() { | ||
return this[kIdpInfo]; | ||
} | ||
} |
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