lucia-auth / lucia

Authentication, simple and clean
https://lucia-auth.com
MIT License
8.61k stars 448 forks source link

[Docs]: github_id type mismatch #1421

Closed T1xx1 closed 5 months ago

T1xx1 commented 5 months ago

Description

https://lucia-auth.com/tutorials/github-oauth/sveltekit

At the "Update section" in the table github_id has number type as in the code just below.

interface DatabaseUserAttributes {
    github_id: number;
    username: string;
}

Scrolling down at "Validate callback" id has become a string

interface GitHubUser {
    id: string;
    login: string;
}

TypeScript is complaining Screenshot (3)