feat(TALE-35): add initial machine key authorization

This commit is contained in:
Aarnav Tale 2024-10-03 11:58:05 -04:00
parent d867769025
commit e8c1cadf54
No known key found for this signature in database
4 changed files with 153 additions and 2 deletions

View file

@ -1,9 +1,10 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import { BeakerIcon, EyeIcon, IssueDraftIcon, PencilIcon } from '@primer/octicons-react'
import { type ActionFunctionArgs, json, LoaderFunctionArgs } from '@remix-run/node'
import { ActionFunctionArgs, json, LoaderFunctionArgs } from '@remix-run/node'
import { useFetcher, useLoaderData } from '@remix-run/react'
import { useEffect, useState } from 'react'
import { Tab, TabList, TabPanel, Tabs } from 'react-aria-components'
import { setTimeout } from 'node:timers/promises'
import Button from '~/components/Button'
import Code from '~/components/Code'
@ -75,6 +76,7 @@ export async function action({ request }: ActionFunctionArgs) {
policy: acl,
})
await setTimeout(250)
return json({ success: true })
} catch (error) {
return json({ success: false }, {