#NEWLINE# def complete_login( self , request , app , token , **kwargs ) : #NEWLINE# #INDENT# headers = { #NEWLINE# #INDENT# 'Authorization' : ( 'bearer ' + token . token ) , #NEWLINE# #UNINDENT# } #NEWLINE# headers . update ( self . headers ) #NEWLINE# extra_data = requests . get ( self . profile_url , headers = headers ) #NEWLINE# if isinstance ( extra_data , list ) : #NEWLINE# #INDENT# extra_data = extra_data [ 0 ] #NEWLINE# #UNINDENT# return self . get_provider ( ) . sociallogin_from_response ( request , extra_data . json ( ) )