Last changes before I try self hosting for the sake of fixing any auth errors and setting up auth correctly on both sides
This commit is contained in:
@@ -14,7 +14,10 @@ import { action, mutation, query } from './_generated/server';
|
|||||||
import { Password, validatePassword } from './custom/auth';
|
import { Password, validatePassword } from './custom/auth';
|
||||||
|
|
||||||
export const { auth, signIn, signOut, store, isAuthenticated } = convexAuth({
|
export const { auth, signIn, signOut, store, isAuthenticated } = convexAuth({
|
||||||
providers: [Authentik({ allowDangerousEmailAccountLinking: true }), Password],
|
providers: [
|
||||||
|
Authentik({ allowDangerousEmailAccountLinking: true }),
|
||||||
|
Password,
|
||||||
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
const getUserById = async (
|
const getUserById = async (
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export default function UseSendProvider(config: EmailUserConfig): EmailConfig {
|
|||||||
id: 'usesend',
|
id: 'usesend',
|
||||||
type: 'email',
|
type: 'email',
|
||||||
name: 'UseSend',
|
name: 'UseSend',
|
||||||
from: 'TechTracker <admin@techtracker.gbrown.org>',
|
from: 'Study Buddy <admin@techtracker.gbrown.org>',
|
||||||
maxAge: 24 * 60 * 60, // 24 hours
|
maxAge: 24 * 60 * 60, // 24 hours
|
||||||
|
|
||||||
async generateVerificationToken() {
|
async generateVerificationToken() {
|
||||||
|
|||||||
Reference in New Issue
Block a user