Fixed a session issue with gauth

Forgot to check config file when checking if gauth was set or not
Added code_length

The code length generated token is now in config