Skip to content

fix GH Authentication in production level (BE) #16

Description

@MarchandMD

Logging in with Github creates a problem.

It’s trying to connect to http://localhost:8000/auth

Maybe it needs to be updated to https://dnvr-zero-be.vercel.app/auth

though perhaps a better solution would be to create some sort of logic for that button:

if production environment
  go to https://dnvr-zero-be.vercel.app/auth
else
  go to http://localhost:8000/auth
end

I imagine the easiest thing to do would be to create 2 buttons; one that goes to production, and one that goes to development. And either display one button or the other, depending on environment

EDIT 1 (mm):

  • I've updated the href to https://dnvr-zero-be.vercel.app/auth
  • Perhaps we still need to add the logic above for different ENV?
  • Attempt to login with GH....and see error there

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    • Status
      In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions