-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(management/application): add Token Lifetime option to the action…
… list (#855)
- Loading branch information
Showing
4 changed files
with
84 additions
and
4 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
16 changes: 16 additions & 0 deletions
16
apps/web/src/app/[lang]/app/actions/IdentityService/put-actions.ts
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,16 @@ | ||
"use server"; | ||
import type { PutApiOpeniddictApplicationsByIdTokenLifetimeData } from "@ayasofyazilim/saas/IdentityService"; | ||
import { structuredError, structuredResponse } from "src/lib"; | ||
import { getApiRequests } from "../api-requests"; | ||
|
||
export async function putApplicationTokenLifetimeApi( | ||
data: PutApiOpeniddictApplicationsByIdTokenLifetimeData, | ||
) { | ||
try { | ||
const requests = await getApiRequests(); | ||
const dataResponse = await requests.applications.putTokenLifetime(data); | ||
return structuredResponse(dataResponse); | ||
} catch (error) { | ||
return structuredError(error); | ||
} | ||
} |
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
Submodule ayasofyazilim-ui
updated
12 files