From 6f1b46399ef6486e7f666f263ed83f1e93e5b95b Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Sat, 21 Sep 2024 13:48:22 +0500 Subject: [PATCH] fix: pass signed jwt to the view instead of the whole tuple --- lib/comfycamp_web/controllers/oauth_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/comfycamp_web/controllers/oauth_controller.ex b/lib/comfycamp_web/controllers/oauth_controller.ex index 23d9ec3..38e341a 100644 --- a/lib/comfycamp_web/controllers/oauth_controller.ex +++ b/lib/comfycamp_web/controllers/oauth_controller.ex @@ -99,7 +99,7 @@ defmodule ComfycampWeb.OauthController do {access_token, refresh_token} = Accounts.generate_oauth_tokens(code.user) id_token = IDToken.build_id_token(code.user, oidc_app.client_id) - signed_id_token = Token.sign(id_token) + {:ok, signed_id_token} = Token.sign(id_token) render(conn, :token, access_token: access_token,