File tree Expand file tree Collapse file tree
(authenticated)/settings/api-tokens/new Expand file tree Collapse file tree Original file line number Diff line number Diff line change 105105 return ;
106106 }
107107
108- const redirectUriReplaced = (windowQueryParams as QueryParamsType ).redirectUri .replace (' %' , tokenSecret );;
108+ const redirectUriReplaced = (windowQueryParams as QueryParamsType ).redirectUri .replace (
109+ ' %' ,
110+ tokenSecret
111+ );
109112
110113 console .log (' Redirecting to:' , redirectUriReplaced );
111114 window .location .href = redirectUriReplaced ;
151154 >
152155 </Card .Content >
153156 <Card .Footer class =" flex justify-end space-x-2" >
154- <Button class ="m-w-16" onclick ={allowRequest } disabled ={creatingToken && ! tokenSecret } color =" yellow" >
157+ <Button
158+ class =" m-w-16"
159+ onclick ={allowRequest }
160+ disabled ={creatingToken && ! tokenSecret }
161+ color =" yellow"
162+ >
155163 {#if tokenSecret }
156164 <span >Open Again</span >
157165 {:else if creatingToken }
Original file line number Diff line number Diff line change 1- import type { PermissionType } from " $lib/api/internal/v1" ;
1+ import type { PermissionType } from ' $lib/api/internal/v1' ;
22
33export type QueryParamsType = {
4- name : string ;
5- redirectUri : string ;
6- permissions : PermissionType [ ] ;
7- }
4+ name : string ;
5+ redirectUri : string ;
6+ permissions : PermissionType [ ] ;
7+ } ;
Original file line number Diff line number Diff line change 11import type { RequestHandler } from './$types' ;
22
33export const GET : RequestHandler = ( { url } ) => {
4- const redirectUrl = url . origin + '/settings/api-tokens/new?' + url . searchParams . toString ( ) ;
5- return new Response ( String ( 'Redirecting...' ) , {
6- status : 308 ,
7- headers : {
8- ' Location' : redirectUrl
9- }
10- } ) ;
4+ const redirectUrl = url . origin + '/settings/api-tokens/new?' + url . searchParams . toString ( ) ;
5+ return new Response ( String ( 'Redirecting...' ) , {
6+ status : 308 ,
7+ headers : {
8+ Location : redirectUrl ,
9+ } ,
10+ } ) ;
1111} ;
12-
You can’t perform that action at this time.
0 commit comments