1.install NextAuth
npm install next-auth2.under app folder, create route under this folder api/auth/[...nextauth]/route.ts
import NextAuth from 'next-auth/next';
import CredentialsProvider from 'next-auth/providers/credentials'| @font-face { | |
| font-family: 'ABeeZee'; | |
| font-style: normal; | |
| font-weight: 400; | |
| src: local('ABeeZee'), local('ABeeZee-Regular'), url(http://fonts.gstatic.com/s/abeezee/v9/JYPhMn-3Xw-JGuyB-fEdNA.ttf) format('truetype'); | |
| } | |
| @font-face { | |
| font-family: 'Abel'; | |
| font-style: normal; | |
| font-weight: 400; |
Android Get Singnature Apk http://dldir1.qq.com/qqcontacts/Gen_Signature_Android.apk
| <?php | |
| function send($token,$title,$body){ | |
| $url = "https://fcm.googleapis.com/fcm/send"; | |
| $serverKey = 'your server token of FCM project'; | |
| $notification = array('title' =>$title , 'text' => $body, 'sound' => 'default', 'badge' => '1'); | |
| $arrayToSend = array('to' => $token, 'notification' => $notification,'priority'=>'high'); | |
| $json = json_encode($arrayToSend); | |
| $headers = array(); | |
| $headers[] = 'Content-Type: application/json'; | |
| $headers[] = 'Authorization: key='. $serverKey; |