@@ -34,17 +34,17 @@ def auth(request):
3434
3535 client = BigcommerceApi (client_id = client_id (), store_hash = config ('apiStoreHash' ))
3636
37- token = client .oauth_fetch_token (client_secret (), code , context , scope , redirect )
38- bc_user_id = token ['user' ]['id' ]
39- email = token ['user' ]['email' ]
40- access_token = token ['access_token' ]
41- 42- a , created = Auth .objects .get_or_create (storehash = store_hash )
43- a .user_id = bc_user_id
44- a .mail = email
45- a .storehash = store_hash
46- a .token = access_token
47- a .save ()
37+ # token = client.oauth_fetch_token(client_secret(), code, context, scope, redirect)
38+ # bc_user_id = token['user']['id']
39+ # email = token['user']['email']
40+ # access_token = token['access_token']
41+ 42+ # a , created = Auth.objects.get_or_create(storehash = store_hash)
43+ # a.user_id = bc_user_id
44+ # a.mail = email
45+ # a.storehash = store_hash
46+ # a.token = access_token
47+ # a.save()
4848
4949 return render (request , 'index.html' )
5050
0 commit comments