@@ -10,11 +10,6 @@ import { AsymmetricKeyFormatValues } from "@/features/common/values/asymmetric-k
1010import { JwtSignatureStatusValues } from "@/features/common/values/jwt-signature-status.values" ;
1111import { DecoderInputsModel } from "@/features/debugger/models/decoder-inputs.model" ;
1212
13- export enum HashWarningVisibilityValues {
14- VISIBLE = "VISIBLE" ,
15- HIDDEN = "HIDDEN" ,
16- }
17-
1813export const DEFAULT_ALG_TYPE = "HS" ;
1914export const DEFAULT_ALG_SIZE = 256 ;
2015export const DEFAULT_ALG = `${ DEFAULT_ALG_TYPE } ${ DEFAULT_ALG_SIZE } ` ;
@@ -63,7 +58,6 @@ export type DecoderStoreState = {
6358 decodingErrors : string [ ] | null ;
6459 signatureWarnings : string [ ] | null ;
6560 verificationInputErrors : string [ ] | null ;
66- useHashWarningVisibility : HashWarningVisibilityValues ;
6761} ;
6862
6963type DecoderStoreActions = {
@@ -79,8 +73,6 @@ type DecoderStoreActions = {
7973 ) => void ;
8074 resetControlledSymmetricSecretKey : ( ) => void ;
8175 resetControlledAsymmetricPublicKey : ( ) => void ;
82- showUseHashWarning : ( ) => void ;
83- hideUseHashWarning : ( ) => void ;
8476 loadDecoderInputs : ( params : DecoderInputsModel ) => void ;
8577} ;
8678
@@ -100,7 +92,6 @@ export const initialState: DecoderStoreState = {
10092 controlledSymmetricSecretKey : null ,
10193 controlledAsymmetricPublicKey : null ,
10294 verificationInputErrors : null ,
103- useHashWarningVisibility : HashWarningVisibilityValues . HIDDEN ,
10495} ;
10596
10697export type DecoderStore = DecoderStoreState & DecoderStoreActions ;
@@ -204,16 +195,6 @@ export const useDecoderStore = create<DecoderStore>()(
204195 format : state . asymmetricPublicKeyFormat ,
205196 } ,
206197 } ) ) ,
207- showUseHashWarning : ( ) => {
208- set ( {
209- useHashWarningVisibility : HashWarningVisibilityValues . VISIBLE ,
210- } ) ;
211- } ,
212- hideUseHashWarning : ( ) => {
213- set ( {
214- useHashWarningVisibility : HashWarningVisibilityValues . HIDDEN ,
215- } ) ;
216- } ,
217198 loadDecoderInputs : async ( params ) => {
218199 const update = await TokenDecoderService . loadDecoderInputs ( params ) ;
219200
0 commit comments