File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
44Pkg = " 44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
55PkgAuthentication = " 4722fa14-9d28-45f9-a1e2-a38605bd88f0"
66Random = " 9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
7+ TOML = " fa267f1f-6049-4f14-aa54-33bafae1ed76"
78Test = " 8dfed614-e22c-5e08-85e1-65c5234f0b40"
89
910[compat ]
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ function response_handler(req)
4141 " user_name" => " firstname lastname" ,
4242 " user_email" => " [email protected] " ,
4343 " id_token" => " full-" * ID_TOKEN,
44+ " access_token" => " full-" * ID_TOKEN,
4445 " refresh_token" => refresh_token,
4546 " refresh_url" => " http://localhost:$(PORT) /auth/renew/token.toml/v2/" ,
4647 " expires_in" => EXPIRY,
@@ -87,6 +88,7 @@ function renew_handler(req)
8788 TOKEN[][" refresh_token" ] = Random. randstring (10 )
8889 TOKEN[][" expires_at" ] = ceil (Int, time () + EXPIRY)
8990 TOKEN[][" id_token" ] = " refresh-" * ID_TOKEN
91+ TOKEN[][" access_token" ] = " refresh-" * ID_TOKEN
9092
9193 return HTTP. Response (200 , sprint (TOML. print, TOKEN[]))
9294end
You can’t perform that action at this time.
0 commit comments