defmodule.io
  • Home
  • Purpose
  • Contribute
Subscribe

phoenix

A collection of 2 posts
Managing user locale in Phoenix LiveView
phoenix Featured

Managing user locale in Phoenix LiveView

Browsing the web, there are MANY ways to manage a users locale in Phoenix LiveView. Here's the way I've decided to go for my application. Let me paint the picture for you: I have a top navbar which is a LiveView and rendered in the root.html.heex template using
Dec 21, 2022 4 min read
Setting up Oauth2 in Phoenix
oauth2 Featured

Setting up Oauth2 in Phoenix

First add the dependency to your mix.exs # /mix.exs defp deps do [ ... {:ueberauth_google, "~> 0.10"} ] end Then configure Ueberauth within your application # /config.exs ... # Ueberauth Config config :ueberauth, Ueberauth, providers: [ google: {Ueberauth.Strategy.Google, [default_scope: "email profile openid"] } ] config :ueberauth, Ueberauth.Strategy.Google.OAuth, client_id: # generated
Dec 14, 2022 2 min read
defmodule.io © 2025
  • Sign up
Powered by Ghost