<reponame>nahuelmol/patitas
from django.conf import settings
import jwt

def generate_access_token(user):
	payload = {
		'user_id':user.id,
	}

	access_token = jwt.encode(payload, settings.SECRET_KEY, algorithm='HS256')
	return access_token
from django.conf import settings
import jwt

def generate_access_token(user):
	payload = {
		'user_id':user.id,
	}

	access_token = jwt.encode(payload, settings.SECRET_KEY, algorithm='HS256')
	return access_token