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

Retrieve omniauth_identity automatically when accessed for first time #29

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

enescakir
Copy link
Contributor

I often forget to call retrieve_omniauth_identity before trying to access the omniauth_identity attribute in
before_omniauth_callback_route.

I think we can make it automatically retrieve omniauth_identity the first time it's called.

I haven't removed the retrieve_omniauth_identity method since it might already be called by users.

I often forget to call `retrieve_omniauth_identity` before trying to
access the `omniauth_identity` attribute in
`before_omniauth_callback_route`.

I think we can make it automatically retrieve `omniauth_identity` the
first time it's called.

I haven't removed the `retrieve_omniauth_identity` method since it might
already be called by users.
@janko
Copy link
Owner

janko commented Dec 27, 2024

This looks good, thanks!

@janko janko merged commit e15b67d into janko:master Dec 27, 2024
@enescakir enescakir deleted the omniauth-identity-auto branch December 27, 2024 15:26
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