mirror of
https://github.com/documenso/documenso.git
synced 2025-11-17 10:11:35 +10:00
fix: wip
This commit is contained in:
@ -9,7 +9,7 @@ import { authDebugger } from '../utils/debugger';
|
||||
* @param c - The Hono context.
|
||||
*/
|
||||
export const getSessionCookie = async (c: Context) => {
|
||||
const sessionId = await getSignedCookie(c, 'secret', 'sessionId');
|
||||
const sessionId = await getSignedCookie(c, 'secret', 'sessionId'); // Todo: Use secret
|
||||
|
||||
return sessionId;
|
||||
};
|
||||
|
||||
@ -3,6 +3,6 @@ import { env } from '@documenso/lib/utils/env';
|
||||
// Todo: Delete
|
||||
export const authDebugger = (message: string) => {
|
||||
if (env('NODE_ENV') === 'development') {
|
||||
console.log(`[DEBUG]: ${message}`);
|
||||
// console.log(`[DEBUG]: ${message}`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user