Skip to content

serverAuth incorrect return type #192

@amaury-tobias

Description

@amaury-tobias

On server routes when use const auth = serverAuth(event) it returns:
type AuthInstance = ReturnType<typeof betterAuth> excluding methods from plugins
Instead AuthInstance can be:

import createServerAuth from '#auth/server';

type AuthOptions = ReturnType<typeof createServerAuth>;
type AuthInstance = ReturnType<typeof betterAuth<AuthOptions>>;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions