<titledata-rh="true">Interface: AuthenticationGetSessionOptions | Podman Desktop</title><metadata-rh="true"name="viewport"content="width=device-width,initial-scale=1"><metadata-rh="true"name="twitter:card"content="summary_large_image"><metadata-rh="true"property="og:image"content="https://podman-desktop.io/img/banner_podman-desktop.png"><metadata-rh="true"name="twitter:image"content="https://podman-desktop.io/img/banner_podman-desktop.png"><metadata-rh="true"property="og:url"content="https://podman-desktop.io/api/interfaces/AuthenticationGetSessionOptions"><metadata-rh="true"property="og:locale"content="en"><metadata-rh="true"name="docusaurus_locale"content="en"><metadata-rh="true"name="docsearch:language"content="en"><metadata-rh="true"name="docusaurus_version"content="current"><metadata-rh="true"name="docusaurus_tag"content="docs-api-current"><metadata-rh="true"name="docsearch:version"content="current"><metadata-rh="true"name="docsearch:docusaurus_tag"content="docs-api-current"><metadata-rh="true"property="og:title"content="Interface: AuthenticationGetSessionOptions | Podman Desktop"><metadata-rh="true"name="description"content="Options to be used when getting an AuthenticationSession from an AuthenticationProvider."><metadata-rh="true"property="og:description"content="Options to be used when getting an AuthenticationSession from an AuthenticationProvider."><linkdata-rh="true"rel="icon"href="/img/favicon.ico"><linkdata-rh="true"rel="canonical"href="https://podman-desktop.io/api/interfaces/AuthenticationGetSessionOptions"><linkdata-rh="true"rel="alternate"href="https://podman-desktop.io/api/interfaces/AuthenticationGetSessionOptions"hreflang="en"><linkdata-rh="true"rel="alternate"href="https://podman-desktop.io/api/interfaces/AuthenticationGetSessionOptions"hreflang="x-default"><linkdata-rh="true"rel="preconnect"href="https://MR01ANKQ9S-dsn.algolia.net"crossorigin="anonymous"><linkrel="alternate"type="application/rss+xml"href="/blog/rss.xml"title="Podman Desktop RSS Feed">
<linkrel="alternate"type="application/atom+xml"href="/blog/atom.xml"title="Podman Desktop Atom Feed">
<p>Options to be used when getting an <ahref="/api/interfaces/AuthenticationGetSessionOptions#AuthenticationSession">AuthenticationSession</a> from an <ahref="/api/interfaces/AuthenticationGetSessionOptions#AuthenticationProvider">AuthenticationProvider</a>.</p>
<h2class="anchor anchorWithStickyNavbar_JmGV"id="properties">Properties<aclass="hash-link"aria-label="Direct link to Properties"title="Direct link to Properties"href="/api/interfaces/AuthenticationGetSessionOptions#properties"></a></h2>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="clearsessionpreference">clearSessionPreference?<aclass="hash-link"aria-label="Direct link to clearSessionPreference?"title="Direct link to clearSessionPreference?"href="/api/interfaces/AuthenticationGetSessionOptions#clearsessionpreference"></a></h3>
prompted to select an account to use when <ahref="/api/interfaces/AuthenticationGetSessionOptions#authentication.getSession">getSession</a> is called. This preference
is remembered until <ahref="/api/interfaces/AuthenticationGetSessionOptions#authentication.getSession">getSession</a> is called with this flag.</p>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="source">Source<aclass="hash-link"aria-label="Direct link to Source"title="Direct link to Source"href="/api/interfaces/AuthenticationGetSessionOptions#source"></a></h4>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="createifnone">createIfNone?<aclass="hash-link"aria-label="Direct link to createIfNone?"title="Direct link to createIfNone?"href="/api/interfaces/AuthenticationGetSessionOptions#createifnone"></a></h3>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="source-1">Source<aclass="hash-link"aria-label="Direct link to Source"title="Direct link to Source"href="/api/interfaces/AuthenticationGetSessionOptions#source-1"></a></h4>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="forcenewsession">forceNewSession?<aclass="hash-link"aria-label="Direct link to forceNewSession?"title="Direct link to forceNewSession?"href="/api/interfaces/AuthenticationGetSessionOptions#forcenewsession"></a></h3>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="source-2">Source<aclass="hash-link"aria-label="Direct link to Source"title="Direct link to Source"href="/api/interfaces/AuthenticationGetSessionOptions#source-2"></a></h4>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="silent">silent?<aclass="hash-link"aria-label="Direct link to silent?"title="Direct link to silent?"href="/api/interfaces/AuthenticationGetSessionOptions#silent"></a></h3>
<p>Whether we should show the indication to sign in in the Accounts menu.</p>
<p>If false, the user will be shown a badge on the Accounts menu with an option to sign in for the extension.
If true, no indication will be shown.</p>
<p>Defaults to false.</p>
<p>Note: you cannot use this option with any other options that prompt the user like <ahref="/api/interfaces/AuthenticationGetSessionOptions#createifnone">createIfNone</a>.</p>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="source-3">Source<aclass="hash-link"aria-label="Direct link to Source"title="Direct link to Source"href="/api/interfaces/AuthenticationGetSessionOptions#source-3"></a></h4>