support for bearer tokens
This commit is contained in:
+4
-1
@@ -5,7 +5,10 @@ type OptionalExcluding<T, TRequired extends keyof T> = Partial<T> &
|
||||
Pick<T, TRequired>;
|
||||
|
||||
export interface LinkIncludingShortenedCollectionAndTags
|
||||
extends Omit<Link, "id" | "createdAt" | "collectionId" | "updatedAt"> {
|
||||
extends Omit<
|
||||
Link,
|
||||
"id" | "createdAt" | "collectionId" | "updatedAt" | "lastPreserved"
|
||||
> {
|
||||
id?: number;
|
||||
createdAt?: string;
|
||||
collectionId?: number;
|
||||
|
||||
Vendored
+1
-19
@@ -5,38 +5,20 @@ declare module "next-auth" {
|
||||
interface Session {
|
||||
user: {
|
||||
id: number;
|
||||
username: string;
|
||||
email: string;
|
||||
isSubscriber: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
interface User {
|
||||
id: number;
|
||||
name: string;
|
||||
username: string;
|
||||
email: string;
|
||||
emailVerified: Date;
|
||||
image: string;
|
||||
password: string;
|
||||
archiveAsScreenshot: boolean;
|
||||
archiveAsPDF: boolean;
|
||||
archiveAsWaybackMachine: boolean;
|
||||
isPrivate: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
}
|
||||
|
||||
declare module "next-auth/jwt" {
|
||||
interface JWT {
|
||||
name: string;
|
||||
email: string;
|
||||
picture: string;
|
||||
sub: string;
|
||||
isSubscriber: boolean;
|
||||
id: number;
|
||||
username: string;
|
||||
isSubscriber: boolean;
|
||||
iat: number;
|
||||
exp: number;
|
||||
jti: string;
|
||||
|
||||
Reference in New Issue
Block a user