From 91d6ff7392b317ae074559f202d4a6e1cb0c8ea9 Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Thu, 13 Feb 2025 13:09:55 +0100 Subject: [PATCH] add api token expiry information notices --- .../js/Pages/Profile/Partials/ApiTokensForm.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/resources/js/Pages/Profile/Partials/ApiTokensForm.vue b/resources/js/Pages/Profile/Partials/ApiTokensForm.vue index 2db353be..e54d3c9e 100644 --- a/resources/js/Pages/Profile/Partials/ApiTokensForm.vue +++ b/resources/js/Pages/Profile/Partials/ApiTokensForm.vue @@ -22,6 +22,7 @@ import {useMutation, useQuery, useQueryClient} from "@tanstack/vue-query"; import {useNotificationsStore} from "@/utils/notification"; import {useClipboard} from "@vueuse/core"; import { formatDateTimeLocalized} from "../../../packages/ui/src/utils/time"; +import {ClockIcon} from "@heroicons/vue/20/solid"; const queryClient = useQueryClient(); @@ -165,6 +166,13 @@ const revokeApiTokenMutation = useMutation({ +
+ + + API Tokens are valid for 1 year + +
+ @@ -208,7 +216,10 @@ const revokeApiTokenMutation = useMutation({
{{ token.name }}
- Created on {{ formatDateTimeLocalized(token.created_at) }} + Created at {{ formatDateTimeLocalized(token.created_at) }} + + + Expires at {{ formatDateTimeLocalized(token.expires_at) }} Revoked @@ -249,6 +260,10 @@ const revokeApiTokenMutation = useMutation({
Please copy your new API token. For your security, it won't be shown again. + This token is valid for one year unless you revoke it. +
+ +