forked from superagent-ai/superagent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
89 changed files
with
2,931 additions
and
1,924 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { getServerSession } from "next-auth/next"; | ||
import { options } from "@/lib/next-auth"; | ||
import ApiTokensClientPage from "./client-page"; | ||
import Api from "@/lib/api"; | ||
import { getServerSession } from "next-auth/next" | ||
import { options } from "@/lib/next-auth" | ||
import ApiTokensClientPage from "./client-page" | ||
import Api from "@/lib/api" | ||
|
||
export const metadata = { | ||
title: "Api tokens | Superagent", | ||
description: "Manage your api tokens", | ||
}; | ||
} | ||
|
||
export default async function ApiTokens() { | ||
const session = await getServerSession(options); | ||
const api = new Api(session); | ||
const apiTokens = await api.getApiTokens(); | ||
const session = await getServerSession(options) | ||
const api = new Api(session) | ||
const apiTokens = await api.getApiTokens() | ||
|
||
return <ApiTokensClientPage data={apiTokens} session={session} />; | ||
return <ApiTokensClientPage data={apiTokens} session={session} /> | ||
} |
Oops, something went wrong.