Fix signing of jet
Refactor into Auth controller