Files
api/documentation/topics/generated/getSession.topic
T

52 lines
1.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
SYSTEM "https://resources.jetbrains.com/writerside/1.0/xhtml-entities.dtd">
<topic xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/topic.v2.xsd"
title="Get current session" id="getSession">
<!-- AUTO-GENERATED, DO NOT EDIT -->
<p>This endpoint documentation is generated directly from <code>openapi.yaml</code>.</p>
<chapter title="Endpoint" id="endpoint">
<code-block lang="http">GET /auth/session</code-block>
</chapter>
<chapter title="Operation" id="operation">
<p>Operation ID: <code>getSession</code></p>
<p>Retrieve information about the current authenticated user session</p>
</chapter>
<chapter title="Authentication" id="authentication">
<p>Security requirements:</p>
<table>
<tr><td>Scheme</td><td>Scopes</td></tr>
<tr><td>BearerAuth</td><td>-</td></tr>
</table>
</chapter>
<chapter title="Responses" id="responses">
<table>
<tr><td>Status</td><td>Description</td><td>Content Types</td></tr>
<tr><td>200</td><td>Session information retrieved successfully</td><td>application/json</td></tr>
<tr><td>400</td><td></td><td></td></tr>
<tr><td>401</td><td></td><td></td></tr>
</table>
<p>Schema for response <code>200</code> (<code>application/json</code>):</p>
<code-block lang="json">
{
&quot;allOf&quot;: [
{
&quot;$ref&quot;: &quot;#/components/schemas/User&quot;
},
{
&quot;properties&quot;: {
&quot;two_factor_enabled&quot;: {
&quot;description&quot;: &quot;Indicates if 2FA is enabled for this account&quot;,
&quot;type&quot;: &quot;boolean&quot;
}
},
&quot;type&quot;: &quot;object&quot;
}
]
}
</code-block>
</chapter>
</topic>