mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-07 05:32:35 +00:00
feat: allow to generate access token without expires time
This commit is contained in:
@ -25,8 +25,8 @@ const expirationOptions = [
|
||||
value: 3600 * 24 * 7,
|
||||
},
|
||||
{
|
||||
label: "Life time",
|
||||
value: 3600 * 24 * 365 * 100,
|
||||
label: "Never",
|
||||
value: 0,
|
||||
},
|
||||
];
|
||||
|
||||
|
@ -95,7 +95,9 @@ const AccessTokenSection = () => {
|
||||
{getFormatedAccessToken(userAccessToken.accessToken)}
|
||||
</td>
|
||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">{String(userAccessToken.issuedAt)}</td>
|
||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">{String(userAccessToken.expiresAt)}</td>
|
||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
|
||||
{String(userAccessToken.expiresAt ?? "Never")}
|
||||
</td>
|
||||
<td className="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium">
|
||||
<button
|
||||
className="text-indigo-600 hover:text-indigo-900"
|
||||
|
Reference in New Issue
Block a user