def get_token_expiry(public=True):
 if public:
  return (now() + EXPIRE_DELTA_PUBLIC)
 else:
  return (now() + EXPIRE_DELTA)

def get_token_expiry ( public = True ) : if public : return ( now ( ) + EXPIRE_DELTA_PUBLIC ) else : return ( now ( ) + EXPIRE_DELTA )
return a datetime object indicating when an access token should expire .