fix: encode tokens to url-safe strings

This commit is contained in:
Ivan R. 2024-09-21 15:34:22 +05:00
parent b7d1aff1d1
commit 51d627efa4
Signed by: lumin
GPG key ID: E0937DC7CD6D3817

View file

@ -102,8 +102,8 @@ defmodule ComfycampWeb.OauthController do
{:ok, signed_id_token} = Token.sign(id_token)
render(conn, :token,
access_token: access_token,
refresh_token: refresh_token,
access_token: Base.url_encode64(access_token),
refresh_token: Base.url_encode64(refresh_token),
id_token: signed_id_token
)
end