Skip to content

after_create_account hook not working #222

Answered by gczh
gczh asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I think I have this figured out after going through the rodauth-omniauth docs again.

I think the callbacks here are ignored entirely and deferred to rodauth-omniauth's

Instead, I should do:

after_omniauth_create_account do
  Profile.create(account_id: account_id, bio: omniauth_info["description"], image_url: omniauth_info["image"])
end

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@janko
Comment options

Answer selected by gczh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants