Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add team info when the user is logged in #44

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

nicomiguelino
Copy link
Collaborator

@nicomiguelino nicomiguelino commented Nov 21, 2024

Overview

  • The pop-up that displays the signed in page shows up even if it's not supposed to.
  • GET /api/v4.1/teams returns two entries in some cases.
  • I just used GET /api/v4.1/teams and get the company name.

Here's a sample JSON response:

[
	{
		"id": "[redacted]",
		"auth_server_id": 109067,
		"company": "Screenly",
		"timezone": "",
		"pin": "316319"
	}
]

Changes

  • Adds info about the team/s that the user is in when logged in
  • Adds a check if the token provided is valid
    • An error message will be provided in the log in page otherwise.

Screenshots

image

image

@nicomiguelino nicomiguelino changed the title fix: gatekeep the signed in page if the token is invalid feat: add team info when the user is logged in Nov 24, 2024
@vpetersson
Copy link
Contributor

@nicomiguelino looks like a rebase is needed.

@nicomiguelino nicomiguelino marked this pull request as draft November 29, 2024 16:07
@nicomiguelino nicomiguelino marked this pull request as ready for review December 2, 2024 14:46
@vpetersson
Copy link
Contributor

/prbot suggest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants