improved

Swift and Ruby sample code

Step 3: Authentication sample code for Swift and Ruby updated.