@@ -26,7 +26,6 @@ abstract class TestAuthFlowImport extends BaseApiEndpoint {}
2626 */
2727class TestSessionScheme extends SessionAuthenticationScheme {
2828 public readonly schemeName = 'TestSession' ;
29- public readonly type = 'apiKey' as const ;
3029
3130 public constructor ( options : { sessionDriver ?: SessionDriver } = { } ) {
3231 super ( {
@@ -95,7 +94,7 @@ describe('SessionAuthenticationScheme', () => {
9594 const scheme = new TestSessionScheme ( ) ;
9695
9796 expect ( scheme . schemeName ) . toBe ( 'TestSession' ) ;
98- expect ( scheme . type ) . toBe ( 'apiKey' ) ;
97+ expect ( scheme . getSecurityScheme ( ) . type ) . toBe ( 'apiKey' ) ;
9998 } ) ;
10099
101100 it ( 'should initialize with session driver' , ( ) => {
@@ -250,7 +249,6 @@ describe('SessionAuthenticationScheme', () => {
250249 it ( 'should use scheme name in requirement' , ( ) => {
251250 class CustomSessionScheme extends SessionAuthenticationScheme {
252251 public readonly schemeName = 'CustomSession' ;
253- public readonly type = 'apiKey' as const ;
254252
255253 public constructor (
256254 options : { sessionDriver ?: SessionDriver } = { }
@@ -528,7 +526,6 @@ describe('SessionAuthenticationScheme', () => {
528526
529527 class TestSchemeWithSteps extends SessionAuthenticationScheme {
530528 public readonly schemeName = 'TestScheme' ;
531- public readonly type = 'oauth2' as const ;
532529
533530 public constructor (
534531 options : { sessionDriver ?: SessionDriver } = { }
@@ -603,7 +600,6 @@ describe('SessionAuthenticationScheme', () => {
603600
604601 class TestSchemeWithRoutes extends SessionAuthenticationScheme {
605602 public readonly schemeName = 'TestScheme' ;
606- public readonly type = 'oauth2' as const ;
607603
608604 public constructor (
609605 options : { sessionDriver ?: SessionDriver } = { }
@@ -653,7 +649,6 @@ describe('SessionAuthenticationScheme', () => {
653649 it ( 'should return auth endpoints from the auth flow' , ( ) => {
654650 class SimpleSessionScheme extends SessionAuthenticationScheme {
655651 public readonly schemeName = 'SimpleSession' ;
656- public readonly type = 'apiKey' as const ;
657652
658653 public constructor (
659654 options : { sessionDriver ?: SessionDriver } = { }
@@ -704,7 +699,6 @@ describe('SessionAuthenticationScheme', () => {
704699 it ( 'should return auth step classes' , ( ) => {
705700 class MultiStepScheme extends SessionAuthenticationScheme {
706701 public readonly schemeName = 'MultiStep' ;
707- public readonly type = 'oauth2' as const ;
708702
709703 public constructor (
710704 options : { sessionDriver ?: SessionDriver } = { }
@@ -773,7 +767,6 @@ describe('SessionAuthenticationScheme', () => {
773767 it ( 'should return empty array for empty auth flow' , ( ) => {
774768 class EmptySessionScheme extends SessionAuthenticationScheme {
775769 public readonly schemeName = 'EmptySession' ;
776- public readonly type = 'apiKey' as const ;
777770
778771 public constructor (
779772 options : { sessionDriver ?: SessionDriver } = { }
@@ -808,7 +801,6 @@ describe('SessionAuthenticationScheme', () => {
808801 it ( 'should return endpoints from auth flow' , async ( ) => {
809802 class MatchingScheme extends SessionAuthenticationScheme {
810803 public readonly schemeName = 'Matching' ;
811- public readonly type = 'apiKey' as const ;
812804
813805 public constructor (
814806 options : { sessionDriver ?: SessionDriver } = { }
0 commit comments