Module: Simple::OAuth2::UniqToken

Defined in:
lib/simple_oauth2/uniq_token.rb

Overview

UniqToken helper for generation of unique token values

Class Method Summary collapse

Class Method Details

.generate(n = 32) ⇒ Object


5
6
7
# File 'lib/simple_oauth2/uniq_token.rb', line 5

def self.generate(n = 32)
  SecureRandom.hex(n)
end