File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed
packages/backend/src/tokens/__tests__ Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -1512,34 +1512,6 @@ describe('tokens.authenticateRequest(options)', () => {
15121512 } ) ;
15131513 expect ( result . toAuth ( ) ) . toBeSignedOutToAuth ( ) ;
15141514 } ) ;
1515-
1516- test ( 'accepts valid session token when acceptsToken is session_token' , async ( ) => {
1517- server . use (
1518- http . get ( 'https://api.clerk.test/v1/jwks' , ( ) => {
1519- return HttpResponse . json ( mockJwks ) ;
1520- } ) ,
1521- ) ;
1522-
1523- const request = mockRequest ( { authorization : `Bearer ${ mockJwt } ` } ) ;
1524- const result = await authenticateRequest ( request , mockOptions ( { acceptsToken : 'session_token' } ) ) ;
1525-
1526- expect ( result ) . toBeSignedIn ( ) ;
1527- expect ( result . tokenType ) . toBe ( 'session_token' ) ;
1528- } ) ;
1529-
1530- test ( 'accepts OAuth JWT when acceptsToken is "any"' , async ( ) => {
1531- server . use (
1532- http . post ( mockMachineAuthResponses . oauth_token . endpoint , ( ) => {
1533- return HttpResponse . json ( mockVerificationResults . oauth_token ) ;
1534- } ) ,
1535- ) ;
1536-
1537- const request = mockRequest ( { authorization : `Bearer ${ mockTokens . oauth_token } ` } ) ;
1538- const result = await authenticateRequest ( request , mockOptions ( { acceptsToken : 'any' } ) ) ;
1539-
1540- expect ( result ) . toBeMachineAuthenticated ( ) ;
1541- expect ( result . tokenType ) . toBe ( 'oauth_token' ) ;
1542- } ) ;
15431515 } ) ;
15441516
15451517 describe ( 'Array of Accepted Token Types' , ( ) => {
You can’t perform that action at this time.
0 commit comments