File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,20 @@ const LoginVscodeCallback: React.FC = () => {
28
28
const location = useLocation ( ) ;
29
29
const { t } = useTranslation ( 'login' ) ;
30
30
const { isLoggedIn } = useSession ( ) ;
31
- const { code, ticket, provider : providerId } = parseQuery ( location . search ) ;
31
+ const {
32
+ code,
33
+ ticket,
34
+ provider : providerId ,
35
+ 'client-request-id' : clientRequestId
36
+ } = parseQuery ( location . search ) ;
32
37
const isVscode = useTypedSelector ( state => state . vscode . isVscode ) ;
33
38
const { access_token : accessToken , refresh_token : refreshToken } = parseQuery ( location . search ) ;
34
39
35
40
// `code` parameter from OAuth2 redirect, `ticket` from CAS redirect (CAS untested for VS Code)
36
41
const authCode = code || ticket ;
37
42
38
43
const launchVscode = ( ) => {
39
- window . location . href = `vscode://source-academy.source-academy/sso?code=${ authCode } &provider =${ providerId } ` ;
44
+ window . location . href = `vscode://source-academy.source-academy/sso?code=${ authCode } &client-request-id =${ clientRequestId } ` ;
40
45
} ;
41
46
42
47
useEffect ( ( ) => {
You can’t perform that action at this time.
0 commit comments