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

Allow customizing text on provider sign in link #213

Open
joshproehl opened this issue Jul 15, 2021 · 1 comment
Open

Allow customizing text on provider sign in link #213

joshproehl opened this issue Jul 15, 2021 · 1 comment

Comments

@joshproehl
Copy link

I would like to be able to customize the "sign in with ..." message for a provider. Currently the view helper does not allow altering the message.

I can see two potential solutions:

  1. Allow passing a msg param into authorization_link/3
  2. Create an authorization_url() function allowing the user to get the raw URL and create their own link.

Option 2 would allow me to add an img tag to the link easily, which would be a nice feature. It would also allow generation a provider URL easily to automatically send a redirect to that URL, which would help in the use case of "use provider only". That may be a different ER which is better executed in some other way though. :-)

@albertmoravec
Copy link

albertmoravec commented Jul 30, 2021

I would appreciate having a similar API to Phoenix.HTML.Link where you can pass a do block that gets passed down as the link's content.

Edit: Looks like this is being addressed in #153, but it's still not merged sadly.

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

No branches or pull requests

2 participants