#NEWLINE# @ auth . route ( '/authy/callback' , methods = [ 'POST' ] ) #NEWLINE# @ verify_authy_request #NEWLINE# def authy_callback( ) : #NEWLINE# #INDENT# 'Authy uses this endpoint to tell us the result of a OneTouch request' #NEWLINE# authy_id = request . json . get ( 'authy_id' ) #NEWLINE# if ( authy_id != '1234' ) : #NEWLINE# #INDENT# user = User . query . filter_by ( authy_id = authy_id ) . one ( ) #NEWLINE# user . authy_status = request . json . get ( 'status' ) #NEWLINE# db . session . add ( user ) #NEWLINE# db . session . commit ( ) #NEWLINE# #UNINDENT# return ( '' , 204 )