Skip to content

Auth token missing in profile API request #121

Description

@AnkitRewar11

Current Behavior

The /api/identity/users/profile request is being sent with Authorization: Bearer null when the auth token is unavailable. This causes the request to fail with a CORS error instead of returning a proper authentication response.

Expected Behavior

The profile API request should only be sent when a valid auth token is available. If no token is present, the request should be skipped or the user should be redirected to the login flow instead of sending Authorization: Bearer null.

Screenshots/Logs

Image

Environment

  • Host OS: Mac Linux Windows
  • Platform: Docker or Kubernetes
  • Meshery Server Version: stable-v
  • Meshery Client Version: stable-v

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions