Skip to content

Switch to using constants for auth_method values#8315

Merged
mitchellhenke merged 3 commits intomainfrom
mitchellhenke/constant-auth-method-values
May 1, 2023
Merged

Switch to using constants for auth_method values#8315
mitchellhenke merged 3 commits intomainfrom
mitchellhenke/constant-auth-method-values

Conversation

@mitchellhenke
Copy link
Contributor

🛠 Summary of changes

Inspired by @zachmargolis' comment here to move away from copying different strings everywhere, this PR defines and uses constants for assigning and checking values in the session's auth_method so that we can more easily continue to develop around these pieces of functionality.

This PR should be neutral in terms of behavior.

changelog: Internal, Maintenance, Switch to using constants for auth_method values
@mitchellhenke mitchellhenke requested a review from zachmargolis May 1, 2023 18:28
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM!

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/constant-auth-method-values branch from d3cd7ce to a4ebf5f Compare May 1, 2023 19:27
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM!! love it

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
@mitchellhenke mitchellhenke merged commit 61d6259 into main May 1, 2023
@mitchellhenke mitchellhenke deleted the mitchellhenke/constant-auth-method-values branch May 1, 2023 20:11
@mdiarra3 mdiarra3 mentioned this pull request May 2, 2023
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