File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
apps/sim/app/api/auth/oauth/token Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -255,28 +255,6 @@ describe('OAuth Token API Routes', () => {
255255 expect ( mockGetOAuthToken ) . not . toHaveBeenCalled ( )
256256 } )
257257
258- it ( 'should reject non-session authentication' , async ( ) => {
259- mockCheckSessionOrInternalAuth . mockResolvedValueOnce ( {
260- success : true ,
261- authType : 'internal_jwt' ,
262- userId : 'test-user-id' ,
263- } )
264-
265- const req = createMockRequest ( 'POST' , {
266- credentialAccountUserId : 'test-user-id' ,
267- providerId : 'google' ,
268- } )
269-
270- const { POST } = await import ( '@/app/api/auth/oauth/token/route' )
271-
272- const response = await POST ( req )
273- const data = await response . json ( )
274-
275- expect ( response . status ) . toBe ( 401 )
276- expect ( data ) . toHaveProperty ( 'error' , 'User not authenticated' )
277- expect ( mockGetOAuthToken ) . not . toHaveBeenCalled ( )
278- } )
279-
280258 it ( 'should reject internal JWT authentication' , async ( ) => {
281259 mockCheckSessionOrInternalAuth . mockResolvedValueOnce ( {
282260 success : true ,
You can’t perform that action at this time.
0 commit comments