Skip to content

Conversation

@mikeland73
Copy link
Contributor

@mikeland73 mikeland73 commented Sep 21, 2023

Summary

This will make code more readable and reduce mistakes when using library. An invalid token is not super useful to client.

Updated error messages for new interface.

I still think an error is better (can help with refresh failures, etc) but @loreto you mentioned preferring this.

How was it tested?

Untested.

## Summary

Stacked on #158

This uses new GetSession interface to show better errors when ID token
doesn't exist, is expired, or otherwise invalid.

## How was it tested?

```
envsec auth logout
envsec init
```
Copy link
Contributor

@loreto loreto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mikeland73 mikeland73 merged commit 429adaf into main Sep 21, 2023
@mikeland73 mikeland73 deleted the landau/auth branch September 21, 2023 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants