Skip to content

🩹 [Patch]: Update context data when the context's access token is refreshed #521

@MariusStorhaug

Description

@MariusStorhaug

Describe the change

When a context is refreshed (i.e. refresh of access token), update data about the context, i.e.
User info, App info (including permissions and events).
Installations just get info from the parent app if managed via an app.

Example from [GitHubAppInstallation]

    [void] SetPermissions([PSCustomObject] $Permissions, [string] $InstallationType) {
        $this.Permissions = [GitHubPermission]::NewPermissionList($Permissions, $InstallationType)
    }

    [void] SetEvents([string[]] $Events) {
        $this.Events = , ($Events)
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions