Skip to content

Commit

Permalink
fix: adjust name of auto-generated access token (#2063)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc authored May 10, 2024
1 parent 3d358cb commit a4042a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/logflare_web/controllers/api/partner/user_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ defmodule LogflareWeb.Api.Partner.UserController do

def create(%{assigns: %{partner: partner}} = conn, params) do
with {:ok, user} <- Partners.create_user(partner, params) do
{:ok, %{token: token}} = Auth.create_access_token(user)
{:ok, %{token: token}} =
Auth.create_access_token(user, %{description: "Default auto-generated"})

conn
|> put_status(201)
Expand Down

0 comments on commit a4042a3

Please sign in to comment.