fix: encode tokens to url-safe strings
This commit is contained in:
parent
b7d1aff1d1
commit
51d627efa4
1 changed files with 2 additions and 2 deletions
|
@ -102,8 +102,8 @@ defmodule ComfycampWeb.OauthController do
|
||||||
{:ok, signed_id_token} = Token.sign(id_token)
|
{:ok, signed_id_token} = Token.sign(id_token)
|
||||||
|
|
||||||
render(conn, :token,
|
render(conn, :token,
|
||||||
access_token: access_token,
|
access_token: Base.url_encode64(access_token),
|
||||||
refresh_token: refresh_token,
|
refresh_token: Base.url_encode64(refresh_token),
|
||||||
id_token: signed_id_token
|
id_token: signed_id_token
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue