Skip to content

Project is delpoyed in cloudflare pages but can not login in with github oauth #111

@beproudforurself

Description

@beproudforurself

Issue Description

After following the README file and correctly configuring the GitHub OAuth ID, keys, and all environment variables, I encountered a 500 Request Error when clicking the GitHub Login button.

Root Cause

After investigation, I determined that this bug likely occurred because the database was not being initialized as expected. Upon reviewing the source code, I discovered that the binding in wrangler.toml did not match the original bindingName in nitro.config.ts, which appeared to be causing this issue.

Potential Solution

Changing the bindingName value to "DB" in the nitro.config.ts file to match the corresponding binding property in wrangler.toml resolved the issue. This alignment between configuration files ensured proper database initialization during the Github OAuth flow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions