fix bad auth commit (#487)

This commit is contained in:
Alex Johansson authored and GitHub committed 2021-08-18 12:15:22 +00:00
1 parent a0a0ec86f0
commit aed9757409
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -17,13 +17,13 @@ type CalendsoSessionUser = DefaultSessionUser & {
id: number;
username: string;
};
interface Session extends DefaultSession {
export interface Session extends DefaultSession {
user?: CalendsoSessionUser;
}
export async function getSession(options: GetSessionOptions): Promise<CalendsoSession | null> {
export async function getSession(options: GetSessionOptions): Promise<Session | null> {
const session = await getSessionInner(options);
// that these are equal are ensured in `[...nextauth]`'s callback
return session as CalendsoSession;
return session as Session | null;
}