API: minor fix

This commit is contained in:
SamR1
2017-12-17 12:07:25 +01:00
parent b73fdd5e86
commit c5db180ede
2 changed files with 7 additions and 1 deletions

View File

@ -28,7 +28,8 @@ class User(db.Model):
).decode()
self.created_at = created_at
def encode_auth_token(self, user_id):
@staticmethod
def encode_auth_token(user_id):
"""Generates the auth token"""
try:
payload = {