Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 58f5272

Browse files
committed
F
1 parent e811cd4 commit 58f5272

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

‎callback/views.py‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /