 package
    
    
    
      package
    
    
      
        
      
    
   
    
      
  
    
      
  
    
      Version: 
        v0.3.1
    
    
      Opens a new window with list of versions in this module.
    
    
    
  
      
  
    Published: Jun  7, 2025
  
      
  
    License: MIT
      
    
  
  
    Opens a new window with license information.
  
      
        
  
    
      Imports: 3
    
  
  
    Opens a new window with list of imports.
  
        
  
    
       Imported by: 0
    
  
  
    Opens a new window with list of known importers.
  
      
    
   
  
  
    
   
    
      
    
    
    
  
    
      
      
        
          
  
    
       Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    
      
        
 
    
Package totp provides a time-based one-time password (TOTP) implementation.
  
  
  
  
  
  
  
      
  
  
    
    
    
  TOTP represents a Time-based One-Time Password
    
  
  
    
    
    
  New creates a new TOTP instance.
nolint:revive // Keeping parameter name for backward compatibility
  
   
    
  
  
    
    
    
  Generate generates a new TOTP.
  
   
    
  
  
    
    
    
  GenerateCustom generates a new TOTP with a custom time.
  
   
    
  
  
    
    
    
  ValidateCustom checks if the provided OTP is valid
  
   
  
       
      
     
   
        
      
      
        
  
    
       Source Files
      ¶
      Source Files
      ¶
    
   
      
      
     
   
   Click to show internal directories. 
   Click to hide internal directories.